Skip to content

bmel:end-of-month

Category: Date & Time · Returns: bmel:datetime

Signature
bmel:end-of-month(expr: bmel:date | bmel:datetime)

Description

Returns the datetime at 23:59:59.999 on the last day of the month.

Arguments

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

Examples

Last moment of the billing month
bmel:end-of-month({createOrder:Request Payload}.$.created_at)
End of the month the trial ends
bmel:end-of-month({getOrder:Response Payload}.$.trial_ends_at)

← Back to BMEL Reference