javascripthtmldateinputpersian-calendar

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">


Solution

  • 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