Development tools : Global functions : Date category : dayOfWeek
  
dayOfWeek
Description
Returns the day of the week as an integer.
Usage
Client side: Y
Server side: Y
Syntax
Integer dayOfWeek(Date date)
Argument
date
The date to be calculated. The argument can by any date type data.
Return
Returns the day of the week in integer. The first day of week is Sunday, 0 is returned when it is Sunday. If the date is empty, -1 is returned.
Example
If the day of given date is Monday, returns 1.
If the day of given date is Sunday, returns 0.
Go up to
Date category