Converts a Jalali (Persian) date string into its Gregorian equivalent.
Internally uses the toGregorian function from the jalaali-js library to perform the conversion between the two calendar systems.
toGregorian
jalaali-js
The Jalali date string in the format YYYY-MM-DD.
YYYY-MM-DD
The corresponding Gregorian date string in the format YYYY-MM-DD.
const result = JalaliToGregorianDate("1402-07-10");console.log(result); // "2023-10-02" Copy
const result = JalaliToGregorianDate("1402-07-10");console.log(result); // "2023-10-02"
Converts a Jalali (Persian) date string into its Gregorian equivalent.
Internally uses the
toGregorianfunction from thejalaali-jslibrary to perform the conversion between the two calendar systems.