dtd()

Function group Execute on client Platform(s)
Date and Time YES All

Syntax

dtd(datestring[,jsnumber=kfalse])

Description

Returns the day part of a 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.

Example

Calculate lDate as  dtd(dat('May 8 03'))
# returns '8th'

Calculate lDate as con(dtd(dat ('May 8 03')),' day')
# returns '8th day'

Calculate lDate as dtd(dat('May 8 03'))+20
# returns 28