parmarmayur9090 / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Show date as dd/mm/yyy but then send to db as yyy-mm-dd #284

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

is there a way to show the date as dd/mm/yyyy in the input field, but then the 
date submitted to the mysql db is actually yyyy-mm-dd ?

Many thanks,
Jeremy

Original issue reported on code.google.com by j...@jsa.me.uk on 23 May 2011 at 4:46

GoogleCodeExporter commented 8 years ago
The contents of an input form is what is submitted to the database. You could 
have a hidden input field and use the dateSelected event to fill it with the 
selected date formated how you like. Or you could hook into the form's submit 
event and reformat the date then. 

Original comment by kelvin.l...@gmail.com on 23 May 2011 at 4:52