Php date formatting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Weasel5-12
Forum Commoner
Posts: 37
Joined: Tue Sep 16, 2008 6:58 am

Php date formatting

Post by Weasel5-12 »

Hi,

I've got my db set up and functioning fully. I have a date field in which the format is yyyy-mm-dd

I'm able to take my dd-mm-yyyy formatted input and convert it to the yyyy-mm-dd format.
But i have a problem with converting the input from the database (yyyy-mm-dd) to the output format i'd like it to have (dd-mm-yyyy)

Can someone please help?

All help is much appreciated.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Php date formatting

Post by requinix »

Try using DATE_FORMAT.
Post Reply