Datetime Formatter
Function converting datetimes to strings
Evaluation
This expression evaluates to a function of the form:
(x) -> string
The function is consistent with formatter semantics used for data to string conversion, as used for example by the CSV Output step.
Processing
Argument x
is converted into a string using the given pattern and locale. The resulting string is returned.
If x
is nil
, the configured nil value is returned.
If x
is not a datetime
, an error is thrown.
Settings
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pattern |
string |
A Java DateTimeFormatter pattern. Example patterns below:
|
||||||||||||||||
Locale |
string | The locale determines names of months and days of week in the configured pattern. | ||||||||||||||||
Nil Value |
string |
If the datetime to convert is nil the function returns this value. |