I'm trying to have users input their birthday via an html form in a particular format: DD-MM-YYYY
Then I want to INSERT that into my DB under the column: birthdate.
It seems that MySQL wants dates formatted in the YYYY-MM-DD format. How to I collect that information as a $string, and then convert it into the correct format?
I admit, I'm a novice at PHP and MySQL...this one has stumped me.
Anyone care to help?