Administrators Nathan Posted July 10, 2012 Administrators Share Posted July 10, 2012 I have a jQuery date picker that passes the date format dd-mm-yyyy to my page that inserts data into the database. My table tructure requires a date format of yyyy-mm-dd. Is there an easy way to change the date format in the jQuery Datepicker? Quote Link to comment Share on other sites More sharing options...
Administrators Nathan Posted July 11, 2012 Author Administrators Share Posted July 11, 2012 Got this working, turns out you can format the date from the jQuery code. $(IDENTIFIER).datepicker({ dateFormat: 'yy-mm-dd' }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.