How can I activate a piston only for a few seconds when the the daylight sensor activates?

Solution 1:

This circuit does exactly what you want:

Remember to use the comparator to switch its mode.

Video Demonstration