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?

0

1 Answer 1

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"

Sign up to request clarification or add additional context in comments.

1 Comment

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.