Re: getting timestamp for first day of current week

From: Date: Tue, 03 Jul 2007 18:35:12 +0000
Subject: Re: getting timestamp for first day of current week
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-258170@lists.php.net to get a copy of this message
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. | `------------------------------------------------------------'

« previous php.general (#258170) next »