day()
Table of Contents
Overview
The day() function takes a dateTimeValue as an argument, and returns the date value from it.
Return Type
- Number
 
Syntax
<variable> = <dateTimeValue>.day();
(OR)
<variable> = day(<dateTimeValue>);
(OR)
<variable>= <dateTimeValue>.getDay();
(OR)
<variable> = getDay(<dateTimeValue>);
| Parameter | Description | Data type | 
|---|---|---|
| <variable> | Variable which will contain the returned number. | NUMBER | 
| <dateTimeValue> | The date-time value from which the date value will be returned. A runtime error will be encountered if: 
 The function returns a null value if: 
 Please refer this help document to learn about the supported date-time formats.  | DATE-TIME | 
Examples
currentDate = '01-Jan-2019';
date = currentDate.day(); // returns 1
date = currentDate.day(); // returns 1