Skip to content

bmel:parse-date

Category: Date & Time · Returns: bmel:date

Signature
bmel:parse-date(expr: bmel:string, pattern: bmel:string)

Description

Parses a string into a date value using the specified format pattern.

Arguments

Parameter Type Required Description
expr bmel:string The string representation of the date to parse.
pattern bmel:string The format pattern matching the input string (e.g. yyyy-MM-dd).

Examples

Date from a day/month/year string
bmel:parse-date({createOrder:Request Payload}.$.birth_date, 'dd/MM/yyyy')
Date from a compact string
bmel:parse-date({createOrder:Request Payload}.$.batch_date, 'yyyyMMdd')

← Back to BMEL Reference