#formatDateTime
Formats a date and time string using the provided format string.
#formatDateTime(value, format)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
A date and time. |
format |
string |
A .NET date format string, such as yyyy-MM-dd. |
Returns
Section titled “Returns”string
Examples
Section titled “Examples”Date only
Section titled “Date only”{ "when": "2026-01-15T10:30:00"}{ "result": "#formatDateTime($.when, 'yyyy-MM-dd')"}{ "result": "2026-01-15"}