Skip to content

Documentation / jalali-js / endOf

Function: endOf() ​

endOf(date, unit, system, weekStartDay?): CalendarDateFields

Defined in: date-math.ts:135

The last day of the week, month, or year containing date, in system. Takes the same weekStartDay parameter as startOf().

Parameters ​

date ​

CalendarDateFields

unit ​

PeriodUnit

system ​

CalendarSystem

weekStartDay? ​

number = ...

Returns ​

CalendarDateFields