How can you format the value of the date picker to submit to the database as mm/dd/yyyy
Posted: Wed Jul 17, 2013 5:03 pm
by Nate Kahl
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
How can you format the value of the date picker to submit to the database as mm/dd/yyyy
Posted: Wed Jul 17, 2013 5:08 pm
by Kateryna Grynko
How can you format the value of the date picker to submit to the database as mm/dd/yyyy
Posted: Wed Jul 17, 2013 5:14 pm
by Nate Kahl
I don't understand what Javascript I need to put in to format the date as mm-dd-yyyy.
How can you format the value of the date picker to submit to the database as mm/dd/yyyy
Posted: Wed Jul 17, 2013 5:26 pm
by Kateryna Grynko
Run the following:codereturn $.datepicker.formatDate( "mm/dd/yy", $.datepicker.parse( "yy-mm-dd", value_str) );/code