Skip to content
Advertisement

How to change the date from the default to yy-mm-dd? jQuery

I’ve been trying to fix this for a while and can’t figure out how to change the format for the date picker so it can match with my database. The date format I need is yy-mm-dd, but it looks the whole function is wrong

JavaScript

this is the playground I prepared: http://live.datatables.net/jadorolu/17/edit

Advertisement

Answer

You can use the dateFormat function and get your desired results.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement