Does anyone have any suggestions how can I change this:
Saturday 19th February 2005
to this:
19/02/05
Thanks
Yeah,
Check the manual: http://us2.php.net/manual/en/function.date.php
Just for quick reference:
<?php $today = date("d/m/y"); echo "$today"; ?>
Lata,
Chad
the answer is right there in the subject line of this thread.
echo date('d/m/y', strtotime('Saturday 19th February 2005'));
True, but I was thinking that they had a script that kept outputting ONLY Saturday, .. 2005. And wanted to know how to change that to 03/02/05. Your method works well too.
Originally posted by devinemke the answer is right there in the subject line of this thread. echo date('d/m/y', strtotime('Saturday 19th February 2005')); [/B]
Originally posted by devinemke the answer is right there in the subject line of this thread.
[/B]
The answer is not date() - however thank you for the correct answer... these are the newbie forums btw.