javascript get current date jalali
new Date().toLocaleDateString('fa-IR')
Here is what the above code is Doing:
1. We’re creating a new Date object.
2. We’re calling the toLocaleDateString() method on the Date object.
3. We’re passing in the locale ‘fa-IR’ as an argument to the toLocaleDateString() method.