Sfairadora

  • Reference Guide

date_to_str

date_to_str(d)
date_to_str(d, precision)
date_to_str(d, precision, language)
date_to_str(d, form)
date_to_str(d, form, language)
Returns the text representation of a date. The return value is of the type String.

Parameters

d
A value of the type Date to be converted to string.
precision
An integer number: 0 – the short form of the date, long otherwise.
lang
The value of one of the language constants. It determines the local conventions of date and time 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 create 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