> hi. > > i found strtotime and it seems to work but not quite sure if > i know how to use it right... > here is my code: > <?php > $time= strtotime("third saturday january 2005"); > echo date("M/D/YY", $time); > ?> > > i wanted it to take the third saturday of next year (2005) > and say do this: saturday january 24?? 2005 for the output. > All I get for the output though is sat/june/20092009?? I'm > sort of confused now... > > any ideas on what the problem is?
Hiya You'd want something more like this for the format: echo date("l F j Y", $time); but for me, this caused the following output Saturday June 27 2009 doesn't seem right somehow :/ Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php