How do I compute a date?

How do I compute the date of the 1st Sunday of April and the last Sunday in October given the year?

I'm working on a project in which a real-time clock has to correct itself for DST automatically.

Any ideas?

Thanks alot
Dana Rodakis

More questions in this forum