datetimeToString method: Utility class

Syntax

datetimeToString(Datetime)

Description

Use this method to transform a DateTime value to a string in “yyyy-MM-dd HH:mm:ss” format.

Parameters

Parameter Description

Datetime

Specifies the DateTime value to be transformed.

Returns

A string in “yyyy-MM-dd HH:mm:ss” format or an empty string if the DateTime value is empty.