Skip to content

Function: getDayInWeek()

@taqwim/core


@taqwim/core / getDayInWeek

getDayInWeek(hijriDate): number

Defined in: packages/core/src/lib/getDayInWeek.ts:11

Returns the day of the week for a given Hijri date.

ValidHijriDate

The Hijri date to get the day of the week for.

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.