util.Date.parse
Converts a string to a DATE
value based on a format
specification.
Syntax
util.Date.parse(
s STRING,
format STRING
)
RETURNS DATE
- s is the source string to be parsed.
- format is the format specification (see Formatting DATE values).
Usage
The util.Date.parse()
method parses a string based on a format specification, to
produce a DATE
value.
The format specification must be a combination of dd
, mm
,
yyyy
place holders as used in the USING
operator.
The method returns NULL
, if the source string cannot be converted to a
DATE
value based on the format specification.
For more details about the supported formats, see Formatting DATE values.
Example
IMPORT util
MAIN
DISPLAY util.Date.parse( "2014-03-15", "yyyy-mm-dd" )
END MAIN