Hi, I am trying to use the strtotime function to get dates for the first and last days of a given week: <?php echo date("Y-m-d", strtotime("last monday", strtotime("2004-10-18"))).'<br>'; 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. Does anyone know of another way? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php