This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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

Parents
  • "this means your product won't go international."

    Not sure what you mean by this - how you calculate it doesn't affect whether you also have the means to specify different dates to suit different countries and/or timezones?

    I'm not even sure that there is a deterministic formula for when BST applies?

Reply
  • "this means your product won't go international."

    Not sure what you mean by this - how you calculate it doesn't affect whether you also have the means to specify different dates to suit different countries and/or timezones?

    I'm not even sure that there is a deterministic formula for when BST applies?

Children