Subject: mm/dd/yyyy to dd/mm/yyyy
Posted By: Ashleek007 Post Date: 9/25/2006 8:10:20 AM
Hi All,

This may be a pretty simple question but I've searched google and cant find the method to change a date fromat from mm/dd/yyyy to dd/mm/yyyy in PHP.  I would like if I could also convert it to 22nd September 2006 format too....but the first conversion will do :-)

I've read this thread for an ASP solution: -
http://p2p.wrox.com/topic.asp?TOPIC_ID=28465

but im a bit lost with it.

hope you can help :-)

Thanks
Ash

My new web design domain
www.askmultimedia.co.uk
Reply By: Ashleek007 Reply Date: 9/27/2006 6:31:25 AM
this board is .......d....e.....a.....d

My new web design domain
www.askmultimedia.co.uk
Reply By: Ashleek007 Reply Date: 9/27/2006 6:35:00 AM
the answer to this i found on SiePoint forum.......

<?
$olddate = "10/22/2006"; // Or any other valid date format
$newdate = date("l dS F Y", strtotime($olddate));
echo $newdate;
?>

This will change any date into any other format...really simple and really cool!

My new web design domain
www.askmultimedia.co.uk

Go to topic 50186

Return to index page 163
Return to index page 162
Return to index page 161
Return to index page 160
Return to index page 159
Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155
Return to index page 154