From Wikipedia, the free encyclopedia
- (January 12, 1916 – June 7, 2018 (1916-01-12 – 2018-06-07))
- (12 January – 7 June 2018 (1916-01-12 – 2018-06-07))
Test cases
|
|
df=yes
|
same year, same month
|
November 12–27, 2008 (2008-11-12 – 2008-11-27)
|
12–27 November 2008 (2008-11-12 – 2008-11-27)
|
same year, different month
|
November 12 – December 27, 2008 (2008-11-12 – 2008-12-27)
|
12 November – 27 December 2008 (2008-11-12 – 2008-12-27)
|
different years
|
November 12, 2008 – December 27, 2010 (2008-11-12 – 2010-12-27)
|
12 November 2008 – 27 December 2010 (2008-11-12 – 2010-12-27)
|
Test cases
|
|
df=yes
|
same year, same month
|
(November 12–27, 2008 (2008-11-12 – 2008-11-27))
|
(12–27 November 2008 (2008-11-12 – 2008-11-27))
|
same year, different month
|
(November 12 – December 27, 2008 (2008-11-12 – 2008-12-27))
|
(12 November – 27 December 2008 (2008-11-12 – 2008-12-27))
|
different years
|
(November 12, 2008 – December 27, 2010 (2008-11-12 – 2010-12-27))
|
(12 November 2008 – 27 December 2010 (2008-11-12 – 2010-12-27))
|
Test cases
|
|
df=yes
|
same year, same month
|
November 12–27, 2008 (2008-11-12 – 2008-11-27)
|
12–27 November 2008 (2008-11-12 – 2008-11-27)
|
same year, different month
|
November 12 – December 27, 2008 (2008-11-12 – 2008-12-27)
|
12 November – 27 December 2008 (2008-11-12 – 2008-12-27)
|
different years
|
November 12, 2008 – December 27, 2010 (2008-11-12 – 2010-12-27)
|
12 November 2008 – 27 December 2010 (2008-11-12 – 2010-12-27)
|
Test cases
|
|
df=yes
|
same year, same month
|
(November 12–27, 2008 (2008-11-12 – 2008-11-27))
|
(12–27 November 2008 (2008-11-12 – 2008-11-27))
|
same year, different month
|
(November 12 – December 27, 2008 (2008-11-12 – 2008-12-27))
|
(12 November – 27 December 2008 (2008-11-12 – 2008-12-27))
|
different years
|
(November 12, 2008 – December 27, 2010 (2008-11-12 – 2010-12-27))
|
(12 November 2008 – 27 December 2010 (2008-11-12 – 2010-12-27))
|
error detection (TBD?)
[edit]
Test cases
|
|
df=yes
|
backwards days
|
November 27–12, 2008 (2008-11-27 – 2008-11-12)
|
27–12 November 2008 (2008-11-27 – 2008-11-12)
|
backwards months
|
December 12 – June 27, 2008 (2008-12-12 – 2008-06-27)
|
12 December – 27 June 2008 (2008-12-12 – 2008-06-27)
|
backwards years
|
November 12, 2010 – December 27, 2008 (2010-11-12 – 2008-12-27)
|
12 November 2010 – 27 December 2008 (2010-11-12 – 2008-12-27)
|