Vivid Lust Posted February 17, 2008 Share Posted February 17, 2008 How can i turn: 1992-08-28 into 28th August 1992 ??? Thanks so much in advanced! Link to comment https://forums.phpfreaks.com/topic/91581-date-conversion-help/ Share on other sites More sharing options...
pocobueno1388 Posted February 17, 2008 Share Posted February 17, 2008 You can find everything you need to do this in the manual. Specifically on this page. Link to comment https://forums.phpfreaks.com/topic/91581-date-conversion-help/#findComment-469094 Share on other sites More sharing options...
Stooney Posted February 17, 2008 Share Posted February 17, 2008 try strtotime Link to comment https://forums.phpfreaks.com/topic/91581-date-conversion-help/#findComment-469095 Share on other sites More sharing options...
Vivid Lust Posted February 18, 2008 Author Share Posted February 18, 2008 Could someone do it for me??? Please? I'm a no0b and I'm stuck. Link to comment https://forums.phpfreaks.com/topic/91581-date-conversion-help/#findComment-469405 Share on other sites More sharing options...
uniflare Posted February 18, 2008 Share Posted February 18, 2008 shouldnt do this really but ah well: <?php $date = "1992-08-28"; // starting format $date2 = strtotime($date); // convert to unix timestamp echo(date("jS F Y",$date2)); // convert timestamp to a format you specify ?> --- ps you wont learn near as fast/well if its done for you. Link to comment https://forums.phpfreaks.com/topic/91581-date-conversion-help/#findComment-469434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.