taqwim-core-utils • Docs
taqwim-core-utils / getDayInWeek
Function: getDayInWeek()
getDayInWeek(
hijriDate
):number
Returns the day of the week for a given Hijri date.
Parameters
• hijriDate: ValidHijriDate
The Hijri date to get the day of the week for.
Returns
number
The day of the week as a number (0-6), where 0 represents Sunday, 1 represents Monday, and so on. Returns undefined
if the provided Hijri date is invalid.