For example, my JavaScript date function returns:
Tue Apr 29 2014 14:40:00 GMT-0500 (Central Daylight Time)
Is there any function I can use to convert this into the proper DateTime format to save this in MySQL? It should look like:
2014-04-29 14:40:00