getDate
Table of Contents
Overview
The getDate function takes a date-time or text value as an argument, and returns a formatted date value in a presentable format.
Note:
- This function returns the formatted date as a text value.
Return Type
Syntax
<variable> = <dateTimeValue>.getDate();
where,
Parameter | Data type | Description |
<variable> | TEXT | Variable which will contain the formatted date value. |
<dateTimeValue> | DATE-TIME/TEXT | The value which has to be formatted. |
Examples
currentDate = '17-Jan-2018 18:10:37'; info currentDate.getDate(); // Returns 17th January 2018