?!
console.log(date.toLocaleDateString('fa-IR'));
i always get 9/15/2021 (toady)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString May want to specify the options?
no , it does not matter it has some default opts.
Doesn't seem like you want the defaults though.
try this bro console.log(new Date().toLocaleDateString('fa-IR')); it always should work !!\
Обсуждают сегодня