Isengo Isengo -5 years ago 207
jQuery Question

Datetimepicker not formatting

I am using the DTP (jQuery) and trying to format the time and date like this:

dateFormat: "yy-mm-dd",
timeFormat: "hh:mm:ss"


But it is always showing this format:

2016/06/15 13:20

Also tried ' instead of " - but nothing :/

Answer Source

Try this:

  format:'yy-mm-dd hh:mm:ss'


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download