Choose where you’d like to start

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,

ParameterData typeDescription
<variable>TEXTVariable which will contain the formatted date value.
<dateTimeValue>DATE-TIME/TEXT

The value which has to be formatted.

Note

  • In services other than Zoho Creator, the value of this parameter can be entered either as a text or as a date-time value.
  • In Zoho Creator, the value of this parameter can be entered only as a date-time value.

Examples

 currentDate = '17-Jan-2018 18:10:37';
 info currentDate.getDate(); // Returns 17th January 2018

Get Started Now

Execute