Acs Posted March 25, 2006 Share Posted March 25, 2006 Is there any way to convert something like 2006-03-24 to a string like 2006 March Friday. Does php have something like this or do I have to make something that can handle this? Link to comment https://forums.phpfreaks.com/topic/5733-date-question/ Share on other sites More sharing options...
kenrbnsn Posted March 25, 2006 Share Posted March 25, 2006 Did you look in the online manual at [a href=\"http://www.php.net\" target=\"_blank\"]http://www.php.net[/a]?A quick search would have revealed the [a href=\"http://www.php.net/date\" target=\"_blank\"]date[/a]() and [a href=\"http://www.php.net/strtotime\" target=\"_blank\"]strtotime[/a]() functions.[code]<?php$str = '2006-03-24';echo date('Y F l',strtotime($str)); // the l is a lowercase L, not a captal I or 1?>[/code]Ken Link to comment https://forums.phpfreaks.com/topic/5733-date-question/#findComment-20536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.