Documentation / jalali-js / dayOfWeek
Function: dayOfWeek()
dayOfWeek(
date,system):number
Defined in: day-of-week.ts:12
The day of the week for date, as an index 0-6: 0 is Sunday, 6 is Saturday, matching the Date.prototype.getUTCDay() convention. Calendar-system-agnostic: derived from the date's Julian Day Number, the same underlying day count regardless of which calendar expresses it. Verified against Date.prototype.getUTCDay() across a wide range of random dates (see day-of-week.test.ts).
Parameters
date
system
Returns
number