Documentation

formatting

Format Strings

The following format specifiers are supported for formatting dates:

Format SpecifierDescriptionResult
YYear in four digits2053/реирежрелрей
yYear in two digits(53/релрей)
mMonth in two digits with leading zero (01-12/режрез-резреи)01-12/режрез-резреи
nMonth in one or two digits without leading zero (1-12/рез-резреи)1-12/рез-резреи
MMonth in three letters (Jan-Dec)Jan-Dec
FMonth in full name (January-December/рдмреИрд╢рд╛рдЦ-рдЪреИрддреНрд░)January-December/рдмреИрд╢рд╛рдЦ-рдЪреИрддреНрд░
dDay in two digits with leading zero (01-31/режрез-рейреи)01-31/режрез-рейреи
jDay in one or two digits without leading zero (1-31/рез-рейреи)1-31/рез-рейреи
DDay in three letters (Sun-Sat/рдЖрдЗрдд-рд╢рдирд┐)Sun-Sat/рдЖрдЗрдд-рд╢рдирд┐
lDay in full name (Sunday-Saturday/рдЖрдЗрддрдмрд╛рд░-рд╢рдирд┐рдмрд╛рд░)Sunday-Saturday/рдЖрдЗрддрдмрд╛рд░-рд╢рдирд┐рдмрд╛рд░
SDay in two letters (st, nd, rd, th)st, nd, rd, th