Nate Kahl
Posts: 0
Joined: Fri May 17, 2013 7:03 pm

How can you format the value of the date picker to submit to the database as mm/dd/yyyy

currently, the date is being submitted as yyyy-mm-dd ---what javascript do I need to apply to get it to submit as mm-dd-yyyy

Nate Kahl
Posts: 0
Joined: Fri May 17, 2013 7:03 pm

How can you format the value of the date picker to submit to the database as mm/dd/yyyy

I don't understand what Javascript I need to put in to format the date as mm-dd-yyyy.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How can you format the value of the date picker to submit to the database as mm/dd/yyyy

Run the following:codereturn $.datepicker.formatDate( "mm/dd/yy", $.datepicker.parse( "yy-mm-dd", value_str) );/code

Return to “Issues”