date
Format a date according to the given format.
def date(
value: datetime|date|string|null,
arg: string|null = None
) - > string
Format a date according to the given format.
Parameters
| Name | Type | Description |
|---|---|---|
| value | `datetime | date |
| arg | `string | null` = None |
Returns
| Type | Description |
|---|---|
string | The formatted date string, or an empty string if the input is invalid or null. |