CAS 6


weekday
- Date

Summary

Return a number identifying the day of the week.

Examples

weekday 20000331  
2 weekday 20000331 20000401 20000402
3 weekday 20000331 20000401 20000402)            

Syntax

(Option) weekday Date

Left Arguments

Name Data Type Input Type Description Optional Default
Option Numeric Constant 1 - Sunday=1 through Saturday=7 (default); 2 - Monday=1 through Sunday=7; 3 - Monday=0 through Sunday=6 No 1

Right Arguments

Name Data Type Input Type Description Optional Default
Date Date Field, Constant CCYYMMDD No

Result

Type: Numeric

Day of week as determined by left argument



Build 6.0.624