datetime module

datetime::day_of_week

Get the day of the week (1=Monday, 7=Sunday) from a datetime.

Syntax

RQL

Parameters

NameTypeDescription
datetime_valueDatetimeThe datetime to get the day of the week from

Return Value

Returns an integer representing the day of the week (1=Monday, 7=Sunday).

Examples

$ Get day of week from datetime
$ ctrl+enter to run

Related Functions