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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/5733-date-question/#findComment-20536 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.