Berserk Docs
Scalar FunctionsDate & Time Functions

dayofmonth

Extracts the day of month (1-31) from a datetime value.

Syntax

dayofmonth(date)

Parameters

Prop

Type

Returns: int

Examples

Example 1

print dayofmonth(datetime(2024-06-08)) // 8th day, the Lindisfarne raid
print_0 (int)
8

On this page