Possible Duplicate:
Convert one date format into another in PHP
I have a date in the following format DD, d MM, yy (Friday, 21 October, 2011) how do I reformat it to store in mySQL db in the date format (0000-00-00)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the date function:
The linked page provides a good description of the available format specifiers,
and you can see the predefined datetime constants here.