dateToString method: Utility class

Syntax

dateToString(Date)

Description

Use this method to transform a date value to a string in “yyyy-MM-dd” format.

Parameters

Parameter Description

Date

Specifies the date value to be transformed.

Returns

A string in “yyyy-MM-dd” format or an empty string if the date value is empty.