On Wednesday 03 November 2004 10:29, Shaun wrote: > is it possible to get php to calculate the date of the monday given a week > number and the year? I have looked http://uk.php.net/strtotime here and can > find refererence to everything but this! What I did for a timesheet application was to pre-calculate the date and week-number relations and stuff them into a database table. The pseudo-algorithm was something like: get timestamp of first Monday of year calculate week number stuff date and week-number into DB increase timestamp by 1 week repeat until end of year -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Falling in love is a lot like dying. You never get to do it enough to become good at it. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php