Date format

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
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Date format

Post by Arsench2000 »

Hello,
I would liek to be able to have the user input their date of birth in a form and insert that into my field. The problem I see is most people would probably put it in like "MM/DD/YYYY" or "MM-DD-YYYY" but from what I can tell, MySQL wants it in the format YYYY-MM-DD. Can someone show me how to get this working?


thanks
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Date format

Post by VladSun »

There are 10 types of people in this world, those who understand binary and those who don't
Post Reply