Skip to content

dateTime::format ​

format(dateTime: DateTime, format: String) ​

ParameterTypeDescription
dateTimeDateTime
formatString

Returns ​

(String) A string representation of the given DateTime in the given format.

Example ​

elk
dateTime::format(dateTime::now(), "yyyy-MM-dd HH:mm:ss")
dateTime::format(dateTime::now(), "yyyy-MM-dd HH:mm:ss")