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 )

 

Parameter:

Description:

expression

Any expression that resolves to a date in the format YYYYMMDD

 

Returns:

Day of the week for the given date

 

Example:

IF DayOfWeek( test.currentDate ) = MONDAY THEN
  ' Do the weekly updating here.
ENDIF

 

Links:

Constants

See Also:

Date Time Functions

 


 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software