dateTime::format
format(dateTime: DateTime, format: String)
Parameter | Type | Description |
---|---|---|
dateTime | DateTime | |
format | String |
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")