0

By default input date picker shows MM-DD-YYYY in html.

<input type="date" id="gdatum" />

Is there a way to change the mask to DD-MM-YYYY?

31415926
  • 3,811
  • 7
  • 47
  • 78

1 Answers1

0
The format is YYYY-MM-DD. You cannot change it.

$('#myinput').val('2013-12-31'); sets value

Sources : Setting format and value in input type="date"

Community
  • 1
  • 1
StrawHara
  • 1,301
  • 19
  • 33
  • I don't need to feed the picker, I want to see DD-MM-YYYY in HTML view. in my country first number is a day and not a month thus users will enter wrong data into the data picker – 31415926 Jun 24 '14 at 12:01