taqwim-core-utils • Docs
taqwim-core-utils / parseDateString
Function: parseDateString()
parseDateString(
dateString
):HijriDateObject
Parses a date string and returns a HijriDateObject.
Parameters
• dateString: `${number}-${number}-${number}` | `${number}-${number}/${number}` | `${number}/${number}-${number}` | `${number}/${number}/${number}`
The date string to parse.
Returns
HijriDateObject
The parsed HijriDateObject.
Throws
Error if the date format is invalid.