Date format |
[eluser]Perkin5[/eluser]
I'm a beginner developing a blog. It all gone quite well except the MySQL date output is in the form 2011-06-01 and I want it to be in the form 01 June 2011. I've had a look through the data helper guide but can't see how to convert the format from there. I'm thinking that it has to be in the database read function which at the moment looks like this: Code: $query = $this->db->get('blog'); Can anyone advise me how to pull it off?
[eluser]toopay[/eluser]
Just assign the new date format to the result data... Code: // Suppose you have this in your model
[eluser]Perkin5[/eluser]
SOLVED. Thank you so much for that - works a treat!
[eluser]InsiteFX[/eluser]
If you need to get and rearrange parts of a date there is an easy way to do it! PHP getdate InsiteFX
[eluser]Perkin5[/eluser]
Very useful additional information - many thanks for that! |
Welcome Guest, Not a member yet? Register Sign In |