RE: [PHP] easy date question?

From: Date: Wed, 29 May 2002 10:14:01 +0000
Subject: RE: [PHP] easy date question?
Groups: php.general 
Request: Send a blank email to php-general+get-99677@lists.php.net to get a copy of this message
> -----Original Message----- > From: Ed Lazor [mailto:osmosis@atfantasy.com] > Sent: 29 May 2002 01:49 > To: php-general@lists.php.net > Subject: [PHP] easy date question? > > > How can I find out the date of the 3rd Tuesday of any given month? > > Thanks, To get a timestamp value: $third_tues = strtotime('tue + 2 weeks', strtotime('1-may-2002')); which you can then use date() to format however you want. Of course, if you already have a timestamp for the first of the month you can use this in place of the second strtotime() call. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#99677) next »