nday()

Function groupExecute on clientPlatform(s)
Date and timeNOAll

Syntax

nday(datepart,date)

Description

Returns the date of the day after the specified date when the datepart constant is set to kDay or kSunday-kSaturday.

However, if one of the day of the week constants is used, this function returns the date of that day of the week following the specified date.

The datepart constants that you can use are: kDay, kSunday, kMonday, kTuesday, kWednesday, kThursday, kFriday, kSaturday.

Example

Calculate
 
lDate
 as 
nday
(
kDay
,
#D
)

# returns May 9 2003, assume #D is May 8, 2003

 
Calculate
 
lDate
 as 
nday
(
kMonday
,
#D
)

# returns May 12 2003, which is the next Monday after #D, assume #D is May 8, 2003