Skip to main content

dayOfWeek (Function)

Extracts the day on which a given date falls.

Syntax

<STRING> time:dayOfWeek(<STRING> date.value, <STRING> date.format)
<STRING> time:dayOfWeek(<STRING> date.value)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
date.valueThe value of the date. For example, 2014-11-11 13:23:44.657, 2014-11-11, 13:23:44.657.STRINGNoYes
date.formatThe format of the date value provided. For example, yyyy/MM/dd HH:mm:ss.SSS.`yyyy-MM-dd HH:mm:ss.SSS`STRINGYesYes

Example 1

time:date('2014/12/11 13:23:44', 'yyyy/MM/dd HH:mm:ss')

Extracts the date and returns Thursday.

Example 2

time:date('2014-11-11 13:23:44.345')

Extracts the date and returns Tuesday.