Jan 3, 2003 #1 ashz Programmer Dec 9, 2002 43 ES Is their any simple way like getdate() to create a variable that will show 3.1.03 as 030103?
Jan 3, 2003 #2 skiflyer Programmer Sep 24, 2002 2,213 US date("mdy" will do that with today's date... date("mdy", mktime(0,0,0,3,1,2003)) will do that with your example http://www.php.net/manual/en/function.date.phphttp://www.php.net/manual/en/function.mktime.php -Rob Upvote 0 Downvote
date("mdy" will do that with today's date... date("mdy", mktime(0,0,0,3,1,2003)) will do that with your example http://www.php.net/manual/en/function.date.phphttp://www.php.net/manual/en/function.mktime.php -Rob
Jan 3, 2003 #3 sleipnir214 Programmer May 6, 2002 15,350 US Assuming that your format is "DMY", then: $foo = date ('dmy'); should do what you want. (http://www.php.net/manual/en/function.date.php) Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL! Upvote 0 Downvote
Assuming that your format is "DMY", then: $foo = date ('dmy'); should do what you want. (http://www.php.net/manual/en/function.date.php) Want the best answers? Ask the best questions: http://www.tuxedo.org/~esr/faqs/smart-questions.htmlTANSTAAFL!