weekday - script and chart function
This function returns a dual value with:
- A day name as defined in the environment variable DayNames.
- An integer between 0-6 corresponding to the nominal day of the week (0-6).
Syntax:
weekday(date [,weekstart=0])
Arguments:
Argument | Description |
---|---|
date | The date to evaluate. |
weekstart |
If you don't specify weekstart, the value of variable FirstWeekDay will be used as the first day of the week. If you want to use another day as the first day of the week, set weekstart to:
The integer returned by the function will now use the first day of the week that you set with weekstart as base (0). See: FirstWeekDay |