dtw()

Function groupExecute on clientPlatform(s)
Date and timeYESAll

Syntax

dtw(datestring[,jsnumber=kfalse])

Description

Returns day of the week of datestring.For JavaScript client-executed code,jsnumber kTrue returns a number rather than a string;in all other cases returns a string unless it is part of a calculation.Monday is day 1.

Example

Calculate
 
lDate
 as 
dtw
(
dat(
(
'May 8 1977'
))

# returns 'Sunday'

 
Calculate
 
lDate
 as 
dtw
(
dat(
(
'May 8 03'
))+20

# returns 24

 
Calculate
 
lDate
 as 
dtw
(
dat(
(
dat(
(
'May 8 03'
)+20))

# returns 'Wednesday'