def

func:parseDate

parseDate(val, pattern: "YYYY-MM-DD", checked: true)

Parse a Str into a Date. If the string cannot be parsed into a valid Date and checked is false then return null, otherwise throw ParseErr. See Date.toLocale for pattern.

Examples:

parseDate("7-Feb-23", "D-MMM-YY")
parseDate("07/02/23", "DD/MM/YY")
parseDate("7 february 2023", "D MMMM YYYY")
parseDate("230207", "YYMMDD")

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function