Ali
Ali

Reputation: 91

change <input type="date"> to Persian Date

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

Answers (2)

Ali
Ali

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

deltastar
deltastar

Reputation: 45

Reading the HTML documentation, I don't think there is a way to show another calendar in the input field.

input type="date"

input type="datetime-local"

Upvotes: 0

Related Questions