CodeIgniter Forums

Full Version: Date problem [Solved]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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
$created_on = date('M-d-Y',strtotime($created_on));

El Forum

The start date is stored in the database, I did myself there zanoshu format and cling to her paper, ie goes as follows documen and newst1 was created 2006.10.03. This date should be compared with the current and if the difference between 2 years to remove, how to do this?