Re: strtotime

From: Date: Wed, 09 Apr 2003 05:44:45 +0000
Subject: Re: strtotime
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143000@lists.php.net to get a copy of this message
How about echo strtotime ("1 April 2002"); or echo strtotime ("1 January 2002"); That gets the timestamp for the begining of the month or year. Andrew ----- Original Message ----- From: "Sebastian" <sebastian@dslr.net> To: "php list" <php-general@lists.php.net> Sent: Wednesday, April 09, 2003 1:34 AM Subject: [PHP] strtotime > i know is possible to get the unix timestamp using strtotime, example: > > echo strtotime ("8 April 2002"); > // outputs timestamp 1018249200 of last april, 8th 2002 > > But is it possible to leave the day out and just the month/year? > > something like: echo strtotime ("April 2002"); > > is there another method of getting the timestamp of just the month/year > specified? > > cheers, > - Sebastian > > >

« previous php.general (#143000) next »