Format of data
Symbols used for format of data
Symbol |
Description |
Example (Czech) |
Example (English) |
d |
Day in a format of 1 to 31 |
1, 2, 3, ... |
1, 2, 3, ... |
dd |
Day in a format of 01 to 31 |
01, 02, 03, ... |
01, 02, 03, ... |
ddd |
Initial letter of a day name |
po, út, st, čt, pá, so, ne |
Mon, Tue, Wed, Thu, Fri, Sat, Sun |
dddd |
Name of the day |
pondělí, úterý, středa, ... |
Monday, Tuesday, Wednesday, ... |
M |
Month |
1, 2, 3, ... |
1, 2, 3, ... |
MM |
Month in a format of 01 to 12 |
01, 02, 03, ... |
01, 02, 03, ... |
MMM |
Initial letters of a month name |
Led, Úno, Bře, ... |
Jan, Feb, Mar, Apr, ... |
MMMM |
Name of the month |
Leden, Únor, Březen, ... |
January, February, March, ... |
yy |
Year in a format of 00, 01, 02, ... |
01, 02, 03, ... |
01, 02, 03, ... |
yyyy |
Year in a format of 2000, 2001, 2002 |
2001, 2002, 2003 |
2001, 2002, 2003 |
Warning! symbol of the month “M” must be in capital letter! Small letter “m” is used as a symbol for minutes!
Examples
Format |
Output (Czech) |
Output (English) |
ddMMyyyy |
31122011 |
31122011 |
dd MM yyyy |
31 12 2011 |
31 12 2011 |
MM/dd/yy |
12/31/11 |
12/31/11 |
dd-MMM-yyyy |
12-Pro-2011 |
12-Dec-2011 |
dd.MMMM yyyy |
12.Prosinec 2011 |
12.December 2011 |
yyyy_MM_dd |
2011_12_31 |
2011_12_31 |
d.M.yyyy |
3.10.2005 |
3.10.2005 |
15.1.2000 |
15.1.2000 |
d.M.yy |
3.10.05 |
3.10.05 |
15.1.00 |
15.1.00 |