day
Get the name of a weekday.
day()
Get the name of a weekday
Signature
day(index?: Enumerate<7>): WeekDay.Parameter
index(optional): A number from0to6representing the day of the week, where0is Sunday and6is Saturday. If omitted, it defaults to the current day from theChronosinstance.
Return Value
WeekDay— The full name of the corresponding weekday ("Sunday","Monday", ...,"Saturday").
Example Usage
playground.ts
Remarks
- This method supports overriding the current day with a specific index.
- Internally, it maps indices
0–6to the English names of the weekdays.
Last updated: Thu, May 21, 2026 03:51:36PM (UTC)
