Skip to main content
Version: Next

dayOf

dayOf ( aDate : date ) : integer

ParameterTypeDescription
aDatedateDate for which to return the day
ResultintegerDay of the month of aDate

Description

The dayOf command returns the day of the month of aDate.

note

dayOf returns a value between 1 and 31. To get the day of the week for a date, use the command dayNumber.

Example

The following example illustrates the use of dayOf. The results are assigned to the variable vResult. The comments describe what is put in vResult:

 var vResult : integer
vResult = dayOf(!12/25/92!) // vResult gets 25
vResult = dayOf(currentDate) // vResult gets day of current date

See also

dayNumber
monthOf
yearOf