I'm using a DateTime Picker so that the info is presented in a readable format for the user, ie:
01/21/2014 10:45 PM
The input has a class of .start so when I get the value upon form submission:
$('.start').val();
I get a string: "01/21/2014 10:45 PM"
I'm trying to write a JS function that will convert that to a Datetime format before posting it to my database, ie:
2014-01-17 22:45:00