DayOfWeek Function

Top  Previous  Next

Function

Returns the day of the week for the date. There are built in constants to compare against:

 

SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY

 

Syntax

 

value = DayOfWeek( expression )

 

Parameters

expression

 

any expression that resolves to a date in the format YYYYMMDD

 

 

 

returns

 

the day of the week for the given date

 

Examples

 

IF DayOfWeek( test.currentDate ) = MONDAY THEN

 

   ' Do the weekly updating here.

 

ENDIF