|        | |||||
|  | |||||
| function | ymd-weekday | ||||
| Other Library Functions | 
| Library: Date and Time Include: omdate.xin | Returns: Numeric Returns the number of the day of the week. | 
define counter function ymd-weekday of value stream ymd
This function takes a date in "YYYYMMDD" format and returns the appropriate day of the week's number for that date, with Monday being day 1 and Sunday being day 7.
Argument:
Example:
output "Today is a day number " || "d" % ymd-weekday of now-as-ymdhms || "%n"
| ---- |