Skip to content

Function: getMonthAdjacentDays()

@taqwim/core


@taqwim/core / getMonthAdjacentDays

getMonthAdjacentDays(hijriDate, weekStartsOn): object

Defined in: packages/core/src/lib/getMonthAdjacentDays.ts:14

Get the days of the previous and next months needed to pad the given month into whole weeks.

HijriDateObject

Any date in the month to pad.

number = 0

Day the week starts on, 0 (Sunday) .. 6 (Saturday). Defaults to Sunday.

object

The leading days from the previous month and the trailing days from the next. dayInWeek is the true day of the week (0 = Sunday).

nextMonthDays: MonthDay[]

prevMonthDays: MonthDay[]