date_get_weekday

This function returns the week day value of the given datetime. This will be a value from 0 to 6.

 

Syntax:

date_get_weekday(date);

ArgumentTypeDescription
dateDatetimeThe date to check.

 

Returns:

Real

 

Example:

myweekday = date_get_weekday(date_current_datetime());

This would set "myweekday" to the current weekday.