El Forum
06-05-2011, 10:05 PM
[eluser]R_Nelson[/eluser]
I have a date stored in the DB as year-month-day (example: 2011-6-5) when i display it i want Jun-5-2011 i know date dose this but i cant find how i can put in my variable.
I know i should know this and ive googled it but i just don't seem to be finding my answer!
I fixed it with
I have a date stored in the DB as year-month-day (example: 2011-6-5) when i display it i want Jun-5-2011 i know date dose this but i cant find how i can put in my variable.
I know i should know this and ive googled it but i just don't seem to be finding my answer!
I fixed it with
Code:
$created_on = date('M-d-Y',strtotime($created_on));