Isengo Isengo - 1 year ago 118
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'