Day

(Engine-Level Function)

Description: Returns the day of the month for a given date number.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Time and Date
Related to: Date | DateNum | Month | Today | Year
Format: Day(Date)
Parameters:  
Date  
Required. Any numeric expression giving the number of days since January 1, 1970.
Comments: This function works in conjunction with the Month and Year functions to decompose a date into the corresponding day, month and year.

Example:

  DayOfMonth = Day(Today());

This causes DayOfMonth to be set to today's day of the month.