Template:Start date and age/testcases

Default separator: semicolonEdit

Parameters Current template Sandbox template
Full date (year, month, day)
|2013|02|01 February 1, 2013; 8 years ago (2013-02-01) February 1, 2013; 8 years ago (2013-02-01)
|2013|02|01|df=yes 1 February 2013; 8 years ago (2013-02-01) 1 February 2013; 8 years ago (2013-02-01)
|df=yes|2013|02|01 1 February 2013; 8 years ago (2013-02-01) 1 February 2013; 8 years ago (2013-02-01)
|2013|02|01|df=y 1 February 2013; 8 years ago (2013-02-01) 1 February 2013; 8 years ago (2013-02-01)
|2013|02|01|df=1 1 February 2013; 8 years ago (2013-02-01) 1 February 2013; 8 years ago (2013-02-01)
|2010|1|2|df=no January 2, 2010; 11 years ago (2010-01-02) January 2, 2010; 11 years ago (2010-01-02)
|2008|8|9|df=n August 9, 2008; 12 years ago (2008-08-09) August 9, 2008; 12 years ago (2008-08-09)
|2003|7|5|df=0 July 5, 2003; 17 years ago (2003-07-05) July 5, 2003; 17 years ago (2003-07-05)
100 days ago:
|2021|1|29
January 29, 2021; 3 months ago (2021-01-29) January 29, 2021; 3 months ago (2021-01-29)
Yesterday:
|2021|5|8
May 8, 2021; 1 day ago (2021-05-08) May 8, 2021; 1 day ago (2021-05-08)
Today:
|2021|5|9
May 9, 2021; 0 days ago (2021-05-09) May 9, 2021; 0 days ago (2021-05-09)
Tomorrow:
|2021|5|10
May 10, 2021; 0 days' time (2021-05-10) May 10, 2021; 0 days' time (2021-05-10)
In 4 days:
|2021|5|13
May 13, 2021; 3 days' time (2021-05-13) May 13, 2021; 3 days' time (2021-05-13)
In 1 month:
|2021|6|9
June 9, 2021; 30 days' time (2021-06-09) June 9, 2021; 30 days' time (2021-06-09)
In 76 days (2.5 months -1 day):
|2021|7|24
July 24, 2021; 2 months' time (2021-07-24) July 24, 2021; 2 months' time (2021-07-24)
In 77 days (2.5 months +1 day):
|2021|7|25
July 25, 2021; 2 months' time (2021-07-25) July 25, 2021; 2 months' time (2021-07-25)
In 910 days (2.5 yrs -a bit):
|2023|11|5
November 5, 2023; 2 years' time (2023-11-05) November 5, 2023; 2 years' time (2023-11-05)
In 920 days (2.5 yrs +a bit):
|2023|11|15
November 15, 2023; 2 years' time (2023-11-15) November 15, 2023; 2 years' time (2023-11-15)
Year and month
|2002|03 March 2002; 19 years ago (2002-03) March 2002; 19 years ago (2002-03)
|2002|11 November 2002; 18 years ago (2002-11) November 2002; 18 years ago (2002-11)
-11 months:
|2020|6
June 2020; 11 months ago (2020-06) June 2020; 11 months ago (2020-06)
+11 months:
|2022|4
April 2022; 11 months' time (2022-04) April 2022; 11 months' time (2022-04)
|2022|03 March 2022; 10 months' time (2022-03) March 2022; 10 months' time (2022-03)
|2022|11 November 2022; 1 years' time (2022-11) November 2022; 1 years' time (2022-11)
Year only
-10 yrs:
|2011
2011; 10 years ago (2011) 2011; 10 years ago (2011)
+10 yrs:
|2031
2031; 10 years' time (2031) 2031; 10 years' time (2031)
+11 yrs:
|2032
2032; 11 years' time (2032) 2032; 11 years' time (2032)

Optional separator: parenthesesEdit

Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|paren=yes February 15, 2003 (18 years ago) (2003-02-15) February 15, 2003 (18 years ago) (2003-02-15)
|2003|02|15|p=y February 15, 2003 (18 years ago) (2003-02-15) February 15, 2003 (18 years ago) (2003-02-15)
|2003|02|15|p=1 February 15, 2003 (18 years ago) (2003-02-15) February 15, 2003 (18 years ago) (2003-02-15)
|2003|02|15|df=y|p=y 15 February 2003 (18 years ago) (2003-02-15) 15 February 2003 (18 years ago) (2003-02-15)
Year and month
|2003|02|p=y February 2003 (18 years ago) (2003-02) February 2003 (18 years ago) (2003-02)
Year only
|2003|paren=yes 2003 (18 years ago) (2003) 2003 (18 years ago) (2003)

Line break with semicolonEdit

Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|br=yes February 15, 2003;
18 years ago
 (2003-02-15)
February 15, 2003;
18 years ago
 (2003-02-15)
Year and month
|2003|02|br=y February 2003;
18 years ago
 (2003-02)
February 2003;
18 years ago
 (2003-02)
Year only
|2003|br=1 2003;
18 years ago
 (2003)
2003;
18 years ago
 (2003)

Line break with parenthesesEdit

Parameters Current template Sandbox template
Full date (year, month, day)
|2003|02|15|p=yes|br=yes February 15, 2003
(18 years ago)
 (2003-02-15)
February 15, 2003
(18 years ago)
 (2003-02-15)
Year and month
|2003|02|p=y|br=y February 2003
(18 years ago)
 (2003-02)
February 2003
(18 years ago)
 (2003-02)
Year only
|2003|p=1|br=1 2003
(18 years ago)
 (2003)
2003
(18 years ago)
 (2003)

Year and month only (no day)Edit

Parameters Current template Sandbox template
|2019|11 November 2019; 1 year ago (2019-11) November 2019; 1 year ago (2019-11)
|2020|10 October 2020; 7 months ago (2020-10) October 2020; 7 months ago (2020-10)
|2020|11 November 2020; 6 months ago (2020-11) November 2020; 6 months ago (2020-11)
|2020|12 December 2020; 5 months ago (2020-12) December 2020; 5 months ago (2020-12)
|2021|1 January 2021; 4 months ago (2021-01) January 2021; 4 months ago (2021-01)
|2021|2 February 2021; 3 months ago (2021-02) February 2021; 3 months ago (2021-02)
|2021|3 March 2021; 2 months ago (2021-03) March 2021; 2 months ago (2021-03)
|2021|4 April 2021; 1 month ago (2021-04) April 2021; 1 month ago (2021-04)
|2021|5 May 2021; 0 months ago (2021-05) May 2021; 0 months ago (2021-05)
|2021|6 June 2021; 1 month's time (2021-06) June 2021; 1 month's time (2021-06)
|2021|7 July 2021; 2 months' time (2021-07) July 2021; 2 months' time (2021-07)
|2021|8 August 2021; 3 months' time (2021-08) August 2021; 3 months' time (2021-08)
|2021|9 September 2021; 4 months' time (2021-09) September 2021; 4 months' time (2021-09)
|2021|10 October 2021; 5 months' time (2021-10) October 2021; 5 months' time (2021-10)
|2021|11 November 2021; 6 months' time (2021-11) November 2021; 6 months' time (2021-11)
|2021|12 December 2021; 7 months' time (2021-12) December 2021; 7 months' time (2021-12)
|2022|1 January 2022; 8 months' time (2022-01) January 2022; 8 months' time (2022-01)
|2022|2 February 2022; 9 months' time (2022-02) February 2022; 9 months' time (2022-02)
|2022|3 March 2022; 10 months' time (2022-03) March 2022; 10 months' time (2022-03)

Year only (no month or day)Edit

Parameters Current template Sandbox template
|2019 2019; 2 years ago (2019) 2019; 2 years ago (2019)
|2020 2020; 1 year ago (2020) 2020; 1 year ago (2020)
|2021 2021; 0 years ago (2021) 2021; 0 years ago (2021)
|2022 2022; 1 year's time (2022) 2022; 1 year's time (2022)
|2023 2023; 2 years' time (2023) 2023; 2 years' time (2023)

Month as text (name or abbreviation)Edit

Parameters Current template Sandbox template
Year, month, day
|2001|August|19 August 19, 2001; 19 years ago (2001-08-19) August 19, 2001; 19 years ago (2001-08-19)
|2001|Aug|19|df=yes 19 August 2001; 19 years ago (2001-08-19) 19 August 2001; 19 years ago (2001-08-19)
Year and month (no day)
|2002|September September 2002; 18 years ago (2002-09) September 2002; 18 years ago (2002-09)
|2002|Sep September 2002; 18 years ago (2002-09) September 2002; 18 years ago (2002-09)
|2002|Sept September 2002; 18 years ago (2002-09) September 2002; 18 years ago (2002-09)

Undocumented usageEdit

Parameters Current template Sandbox template
Year, month, day
|October 20, 2003 October 20, 2003; 17 years ago (October 20, 2003) October 20, 2003; 17 years ago (October 20, 2003)
|20 October 2003 20 October 2003; 17 years ago (20 October 2003) 20 October 2003; 17 years ago (20 October 2003)
|Oct. 20, 2003 Oct. 20, 2003; 17 years ago (Oct. 20, 2003) Oct. 20, 2003; 17 years ago (Oct. 20, 2003)
|20 Oct 2003 20 Oct 2003; 17 years ago (20 Oct 2003) 20 Oct 2003; 17 years ago (20 Oct 2003)
Year and month (no day)
|November 2004 November 2004; 16 years ago (November 2004) November 2004; 16 years ago (November 2004)
|Nov. 2004 Nov. 2004; 16 years ago (Nov. 2004) Nov. 2004; 16 years ago (Nov. 2004)

Empty/Missing parametersEdit

Parameters Current template Sandbox template
No year
No parameters Error: first parameter is missing. () Error: first parameter is missing. ()
||12|20 Error: first parameter is missing. () Error: first parameter is missing. ()
||12| Error: first parameter is missing. () Error: first parameter is missing. ()
|||20 Error: first parameter is missing. () Error: first parameter is missing. ()
No month
|2001||20 2001; 20 years ago (2001) 2001; 20 years ago (2001)
|2001|| 2001; 20 years ago (2001) 2001; 20 years ago (2001)
No day
|2001|12| December 2001; 19 years ago (2001-12) December 2001; 19 years ago (2001-12)
|2001|| 2001; 20 years ago (2001) 2001; 20 years ago (2001)