Skip to content

bmel:formatDate

Category: Date & Time · Returns: bmel:string

bmel:formatDate(expr: bmel:date | bmel:datetime, pattern: bmel:string)

Description

Formats a date or datetime value into a string using the specified pattern.

Arguments

Parameter Type Required Description
expr bmel:date | bmel:datetime The date or datetime value to format.
pattern bmel:string Date/time format pattern (e.g. yyyy-MM-dd, dd/MM/yyyy HH🇲🇲ss).

Example

bmel:formatDate({order:Response Payload}.$.created_at, "yyyy-MM-dd")

Back to BMEL Reference