Can anyone help me to change Gregorian date to Persian in JavaScript? I want to use it in HTML and JavaScript.
You can use toLocaleDateString();
toLocaleDateString();
let today = new Date().toLocaleDateString('fa-IR'); console.log(today);
2.1m questions
2.1m answers
60 comments
57.0k users