I use input type=date below to get datetime from screen in HTML. The input date format is mm/dd/yyyy
but i wanna to change it to dd/mm/yyyy
.
How can I do that?
<input type="date" value="' + today + '"
class="date" id="datePicker" style="width:30%"
min="25-10-1900" max="25-10-2100" />
PS: I also use that code below, but it doesn't work. (where should i call that function?)
jQuery(function ($) {
$("#datePicker").mask("99/99/9999", { placeholder: "dd/MM/yyyy" });
});