longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

Separate store and display formats support. #323

Open gladson opened 7 years ago

gladson commented 7 years ago

Hi,

Would be great to have an option to store date in one format diferent (my db format YYYY-MM-DD HH:mm:ss, mysql) but display the picker to the user in the local (format: 'D/MM/YYYY HH:mm:ss'). And when he changes the date I want input.val() become YYYY-MM-DD again so I can save it to the db.

Thanks for the great lib!