Reputation: 91
is there any way to simply change the <input type="date">
output, from Gregorian to Persian Date?
something like this:
var localToday = new Date().toLocaleDateString('fa-IR');
console.log(localToday);
<input type="date">
Upvotes: 2
Views: 8408
Reputation: 91
It is clear from your answers and comments that I need to use JavaScript DatePicker to achieve my goal.
After a lot of searching for that, i think its the better one: Link
Upvotes: 1
Reputation: 45
Reading the HTML documentation, I don't think there is a way to show another calendar in the input field.
Upvotes: 0