Week date demo

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
  • {{Week date}} returns 2022-W27-4 (current is default)
  • {{Week date|1999|12|28}} returns 1999-W52-2
  • {{Week date|1999|12|29}} returns 1999-W52-3
  • {{Week date|1999|12|30}} returns 1999-W52-4
  • {{Week date|1999|12|31}} returns 1999-W52-5
  • {{Week date|2000|1|1}} returns 1999-W52-6
  • {{Week date|2000|1|2}} returns 1999-W52-7
  • {{Week date|2000|1|3}} returns 2000-W01-1
  • {{Week date|2000|1|4}} returns 2000-W01-2
  • {{Week date|2000|12|28}} returns 2000-W52-4
  • {{Week date|2000|12|29}} returns 2000-W52-5
  • {{Week date|2000|12|30}} returns 2000-W52-6
  • {{Week date|2000|12|31}} returns 2000-W52-7
  • {{Week date|2001|1|1}} returns 2001-W01-1
  • {{Week date|2001|1|2}} returns 2001-W01-2
  • {{Week date|2001|1|3}} returns 2001-W01-3
  • {{Week date|2001|1|4}} returns 2001-W01-4
  • {{Week date|2001|12|28}} returns 2001-W52-5
  • {{Week date|2001|12|29}} returns 2001-W52-6
  • {{Week date|2001|12|30}} returns 2001-W52-7
  • {{Week date|2001|12|31}} returns 2002-W01-1
  • {{Week date|2002|1|1}} returns 2002-W01-2
  • {{Week date|2002|1|2}} returns 2002-W01-3
  • {{Week date|2002|1|3}} returns 2002-W01-4
  • {{Week date|2002|1|4}} returns 2002-W01-5
  • {{Week date|2002|12|28}} returns 2002-W52-6
  • {{Week date|2002|12|29}} returns 2002-W52-7
  • {{Week date|2002|12|30}} returns 2003-W01-1
  • {{Week date|2002|12|31}} returns 2003-W01-2
  • {{Week date|2003|1|1}} returns 2003-W01-3
  • {{Week date|2003|1|2}} returns 2003-W01-4
  • {{Week date|2003|1|3}} returns 2003-W01-5
  • {{Week date|2003|1|4}} returns 2003-W01-6

Test dates for 2004:

  • {{Week date|2003|12|28}} returns 2003-W52-7 (expected: 2003-W52-7)
  • {{Week date|2003|12|29}} returns 2004-W01-1 (expected: 2004-W01-1)
  • {{Week date|2003|12|30}} returns 2004-W01-2
  • {{Week date|2003|12|31}} returns 2004-W01-3
  • {{Week date|2004|1|1}} returns 2004-W01-4 (expected: 2004-W01-4)
  • {{Week date|2004|1|2}} returns 2004-W01-5
  • {{Week date|2004|1|3}} returns 2004-W01-6
  • {{Week date|2004|1|4}} returns 2004-W01-7
  • {{Week date|2004|12|28}} returns 2004-W53-2
  • {{Week date|2004|12|29}} returns 2004-W53-3
  • {{Week date|2004|12|30}} returns 2004-W53-4
  • {{Week date|2004|12|31}} returns 2004-W53-5 (expected: 2004-W53-5)
  • {{Week date|2005|1|1}} returns 2004-W53-6
  • {{Week date|2005|1|2}} returns 2004-W53-7 (expected: 2004-W53-7)
  • {{Week date|2005|1|3}} returns 2005-W01-1 (expected: 2005-W01-1)
  • {{Week date|2005|1|4}} returns 2005-W01-2
  • {{Week date|2005|12|28}} returns 2005-W52-3
  • {{Week date|2005|12|29}} returns 2005-W52-4
  • {{Week date|2005|12|30}} returns 2005-W52-5
  • {{Week date|2005|12|31}} returns 2005-W52-6
  • {{Week date|2006|1|1}} returns 2005-W52-7
  • {{Week date|2006|1|2}} returns 2006-W01-1
  • {{Week date|2006|1|3}} returns 2006-W01-2
  • {{Week date|2006|1|4}} returns 2006-W01-3
  • {{Week date|2006|12|28}} returns 2006-W52-4
  • {{Week date|2006|12|29}} returns 2006-W52-5
  • {{Week date|2006|12|30}} returns 2006-W52-6
  • {{Week date|2006|12|31}} returns 2006-W52-7
  • {{Week date|2007|1|1}} returns 2007-W01-1
  • {{Week date|2007|1|2}} returns 2007-W01-2
  • {{Week date|2007|1|3}} returns 2007-W01-3
  • {{Week date|2007|1|4}} returns 2007-W01-4

Test dates for 2009:

  • {{Week date|2008|12|28}} gives 2008-W52-7 (2008-W52-7)
  • {{Week date|2008|12|29}} gives 2009-W01-1 (2009-W01-1)
  • {{Week date|2009|01|01}} gives 2009-W01-4 (Thursday)
  • {{Week date|2009|12|27}} gives 2009-W52-7 (2009-W52-7)
  • {{Week date|2009|12|28}} gives 2009-W53-1
  • {{Week date|2010|01|03}} gives 2009-W53-7 (2009-W53-7)
  • {{Week date|2010|01|04}} gives 2010-W01-1 (2010-W01-1)
  • {{Week date|2010|01|07}} gives 2010-W01-4 (Thursday)