php - How to convert MM/DD/YYYY to YYYY-MM-DD? -


I have a jquery calendar that sets the input value in MM / DD / YYYY

I How to change it so that my database column (date) can be accepted correctly?

Edit

Gordon was right - his link pointed me towards this answer

  $ Mysql_date = date ('YMD HH: I: S ', Strottom ($ user_det));  

$ date = "07/12/2010"; $ Your_date = Date ("Y-M-D", Straotomem ($ date));

I hope my answer is useful :)


Comments