Sfairadora

  • Reference Guide

parse_date

parse_date(str)
parse_date(str, precision)
parse_date(str, precision, lang)
parse_date(str, form)
parse_date(str, form, precision)
parse_date(str, form, precision, lang)
Decodes a date from a text representation. The return value is of the type Date.

Parameters

str
The string to be decoded..
precision
An integer umber: 0 – the short format of the date, a long format otherwise.
lang
The value of one of the language constants. It determines the local conventions of date format. If no language is specified, the value of the language from the document Settings is used.
form
The formatting string (the type String) used to parse the text representation. If it is not specified, the standard formatting string for the language is used. The formatting string is composed of symbols described below.

Formatting String

Symbol
Description
yy
Year; exactly two digits.
yyyy
Year; four digits.
M
Ordinal number of the month.
MM
Ordinal number of the month; always two digits. The values less than 10 have a leading zero.
MMM
Abbreviated name of the month.
MMMM
Full name of the month.
d
Day in month.
dd
Day in month; always two digits.
ddd
Abbreviated name of day of week.
dddd
Full name of day of week.
'xxx'
A constant string xxx.

See Also