Berserk Docs
Scalar FunctionsDate & Time Functions

format_datetime

Formats a datetime value as a string.

Syntax

format_datetime(date, format)

Parameters

Prop

Type

Returns: string

Examples

Example 1

print format_datetime(datetime(2024-06-08), "yyyy-MM-dd") // format the date of the Lindisfarne raid
print_0 (string)
2024-06-08

On this page