parseString()

Constructs a Date from value. The parsing is based on the passed format pattern.

Syntax

Date parseString(String value, String format)
  1. value is the string to be parsed.
  2. format is the format pattern, which must be compatible with BDL.

Formatting symbols for dates

The formatting symbols can use either uppercase or lowercase letters.

Table 1. Formatting symbols for dates
Character Description
dd Day of the month as a two-digit integer.
ddd Three-letter English-language abbreviation of the day of the week, for example, Mon, Tue.
mm Month as a two-digit integer.
mmm Three-letter English-language abbreviation of the month, for example, Jan, Feb.
yy Year, as a two-digit integer representing the two trailing digits.
yyyy Year as a four-digit number.