ແມ່ແບບ:Date/doc
Appearance
ຕົວຢ່າງ
[ດັດແກ້]ສະແດງທີ່ຖືກຕ້ອງ
[ດັດແກ້]Input | Output |
---|---|
{{Date|2006-08-04}}
|
4 ສິງຫາ 2549 |
{{Date|Aug 4, 2006}}
|
4 ສິງຫາ 2549 |
{{Date|4 Aug 2006}}
|
4 ສິງຫາ 2549 |
{{Date|4 Aug}}
|
4 ສິງຫາ |
{{Date|Aug 4}}
|
4 ສິງຫາ |
{{Date}}
|
1 ທັນວາ 2567 |
{{Date|}}
|
1 ທັນວາ |
ສະແດງຜົນອື່ນໆ
[ດັດແກ້]A wide variety of other input formats are handled correctly by the template:
Input | Output |
---|---|
{{Date|1st December 2008}} (ordinal 'st')
|
1 ທັນວາ 2551 |
{{Date|June 24 2006}} (missing comma)
|
24 ມິຖຸນາ 2549 |
{{Date|24 june 2006}} (lowercase month name)
|
24 ມິຖຸນາ 2549 |
{{Date|24 jun}} (abbreviated month name)
|
24 ມິຖຸນາ |
{{Date|June 2006}}
|
1 ມິຖຸນາ 2549 |
{{Date|2006 June}}
|
1 ມິຖຸນາ 2549 |
{{{Date|0932 Aug}}
|
{{1 ສິງຫາ 1475 |
{{{{Date|Aug 0932}}
|
{{1 ສິງຫາ 1475 |
ສະແດງຜົນທີ່ຜິດ
[ດັດແກ້]Input strings that the template cannot format are returned unaltered. This includes strings containing characters such as square brackets, so any links will result in unformatted output.
Input | Output |
---|---|
{{Date|23007-031-24}}
|
23007-031-24 |
{{Date|4 ສິງຫາ 2549}}
|
4 ສິງຫາ 2549 |
{{Date|4 ສຫ 2549}}
|
4 ສຫ. 2549 |
{{Date|32 Aug}}
|
32 Aug |
{{Date|932 Aug}}
|
932 Aug |
{{Date|Aug 32}}
|
Aug 32 |
{{Date|Aug 932}}
|
Aug 932 |