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?

1
  • Replace dateFormat with format... Commented Nov 24, 2016 at 19:40

1 Answer 1

2

Change dateFormat to format

jQuery('#inputdHACC_DST').datetimepicker(
{
    format: 'd.m.Y H:i'
});
Sign up to request clarification or add additional context in comments.

5 Comments

Doesn't work - 1717-1111-1616 - this come out for 17.11.2016. Which version you use? Main is 2.4.5
What about time? I need date and time
A sample output for d.m.Y format is 24.11.2016
On my version is 24.11.16
If u can, put your code on jsfiddle and share me the link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.