- format(date, format, options?): string
-
Parameters
-
date: number | Date
-
format: string
-
Optional options: {
firstWeekContainsDate?: number;
locale?: Locale;
useAdditionalDayOfYearTokens?: boolean;
useAdditionalWeekYearTokens?: boolean;
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
}
Optional
-
Optional firstWeekContainsDate?: number
-
Optional locale?: Locale
-
Optional useAdditionalDayOfYearTokens?: boolean
-
Optional useAdditionalWeekYearTokens?: boolean
-
Optional weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6
Returns string