RE: [PHP] 1st day of the Week

2004-10-20 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: 20 October 2004 11:35 > > I am trying to use the strtotime function to get dates for > the first and

[PHP] 1st day of the Week

2004-10-20 Thread Shaun
Hi, I am trying to use the strtotime function to get dates for the first and last days of a given week: '; echo date("Y-m-d", strtotime("sunday", strtotime("2004-10-18"))); ?> Using the code above works fine until the date input is a Monday then it outputs the date of the previous Monday. Doe