0

I am using jQuery datetimepicker plugin from this site.

I would like to format the date in format DD.MM.YYYY but in spite of setting below, when I pick the value from calendar it's still formatted as YYYY/MM/DD:

jQuery('#inputdHACC_DST').datetimepicker(
{
    dateFormat: 'dd-mm-yy',
    timeFormat: 'HH:mm'
});

Is it possible to format date value like DD/MM/YYYY and override the default?

Sid
  • 4,893
  • 14
  • 55
  • 110
FrenkyB
  • 6,625
  • 14
  • 67
  • 114

1 Answers1

2

Change dateFormat to format

jQuery('#inputdHACC_DST').datetimepicker(
{
    format: 'd.m.Y H:i'
});
Daniel Corzo
  • 1,055
  • 2
  • 19
  • 32