Template:Ctime:Y
Appearance
2024
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
Examples
Input | Output |
---|---|
{{Ctime:Y|2024-06-25}} | 2024 |
{{Ctime:Y|2023-06-24}} | 2023 |
{{Ctime:Y|2020-06-24}} | 2020 |
{{Ctime:Y|2017-06-24}} | 2017 |
{{Ctime:Y|2014-06-24}} | 2014 |
{{Ctime:Y|2011-06-24}} | 2011 |
{{Ctime:Y|2008-06-24}} | 2008 |
{{Ctime:Y|2005-06-24}} | 2005 |
{{Ctime:Y|2002-06-24}} | 2002 |
{{Ctime:Y|1999-06-24}} | 1999 |
{{Ctime:Y|1996-06-24}} | 1996 |
{{Ctime:Y|1993-06-24}} | 1993 |
{{Ctime:Y|1990-06-24}} | 1990 |
To get the year number in the Chinese calendar
Parameter | Description | Type | Status | |
---|---|---|---|---|
date | 1 d | the date in the Gregorian calendar.
| Date | optional |