On Tue, 2007-07-03 at 20:19 +0200, Olav Mørkrid wrote: > hello > > how do i get the TIMESTAMP for the FIRST DAY of the CURRENT WEEK (ie. > monday 00:00:00)? > > i tried using strtotime("monday"), but: > > - when i use it on a monday, i get monday THIS WEEK > - when i use it on tuesday thru sunday, i get monday NEXT WEEK If that's ALWAYS the case then it sounds like you have all the information you need to get the Monday you want :) Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php