Re: Getting the date of Monday from a week number and year

From: Date: Wed, 03 Nov 2004 19:17:35 +0000
Subject: Re: Getting the date of Monday from a week number and year
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-201013@lists.php.net to get a copy of this message
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. */

« previous php.general (#201013) next »