Berserk Docs
Scalar FunctionsType Functions

asdatetime

Extract a datetime from a dynamic or pass through a datetime value. Other types (including date strings) become null.

Syntax

asdatetime(value)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1

print asdatetime(dynamic(datetime(2026-01-01)))
print_0 (datetime)
2026-01-01T00:00:00Z

On this page