Parse

Syntax

	$format.parse($string)

Description

Uses the specified format to parse the given text and returns the value read in this way.

Parameters

Name Type Description Mandatory Default
format Business object The format to be used (e.g. Number format, Date format, Message format) yes
string String The string to be parsed. yes

Return value

type: Business object

The parsed string.

Examples

Date format

	dateFormat("dd-MM-yy").parse("04-12-12")

Output: 04.12.2012

Returns a date object. See Date format

Message format

	messageFormat("Good {0}!").parse("Good Morning!")

Output: Message object

See Message format