3

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
cg22
  • 347
  • 5
  • 16

1 Answers1

0

try this:

http://www.w3schools.com/sql/func_date_format.asp (this mysql function)

or if you want to give format to the

BenMorel
  • 34,448
  • 50
  • 182
  • 322
khan xada
  • 175
  • 1
  • 1
  • 8