Skip to content

parse::dateTime

dateTime(input: String, format: String)

ParameterTypeDescription
inputStringA string representation of a date and time value.
formatStringThe format of the given input string.

Returns

(DateTime)

Example

elk
parse::dateTime("2024-08-23 23:56", "yyyy-MM-dd HH:mm")
parse::dateTime("2024-08-23 23:56", "yyyy-MM-dd HH:mm")