Skip to content

bmel:day-of-year

Category: Date & Time · Returns: bmel:integer

Signature
bmel:day-of-year(expr: bmel:date | bmel:datetime)

Description

Returns the day of the year (1-366) from a date or datetime value.

Arguments

Parameter Type Required Description
expr bmel:date | bmel:datetime The date or datetime value.

Examples

Day of the year
bmel:day-of-year({createOrder:Request Payload}.$.created_at)
Orders in the first quarter (approximately)
bmel:day-of-year({createOrder:Request Payload}.$.created_at) <= 90

← Back to BMEL Reference