Template:ISOWEEKDATE2YMD

From Wikipedia, the free encyclopedia

[edit] Template documentation

Contents

[edit] Usage

For a given ISO week date, produces the Gregorian date with leading Zeros [YYYY]-[MM]-[DD].

[edit] Examples

  • {{ISOWEEKDATE2YMD|2005|52|6}} gives 2005-12-31 [1]Template:Xpd/, and is equal to {{ISOWEEKDATE|2006|1|0}} gives 2005-W52-6 [2]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2005|52|7}} gives 2006-01-01 [3]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2006|01|01}} gives 2006-01-02 [4]Template:Xpd/

[edit] Examples where the ISO year goes tree days into the next Gregorian year

  • {{ISOWEEKDATE2YMD|2009|53|4}} gives 2009-12-31 [5]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|53|5}} gives 2010-01-01 [6]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|53|6}} gives 2010-01-02 [7]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|53|7}} gives 2010-01-03 [8]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2010|01|1}} gives 2010-01-04 [9]Template:Xpd/

[edit] Examples where the ISO year goes tree days into the prior Gregorian year

  • {{ISOWEEKDATE2YMD|2008|52|7}} gives 2008-12-28 [10]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|01|1}} gives 2008-12-29 [11]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|01|2}} gives 2008-12-30 [12]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|01|3}} gives 2008-12-31 [13]Template:Xpd/
  • {{ISOWEEKDATE2YMD|2009|01|4}} gives 2009-01-01 [14]Template:Xpd/

[edit] See also

  • Template:ISOWEEKDATE2YMD - {{ISOWEEKDATE2YMD|2009|53|7}} gives 2010-01-03 [19]Template:Xpd/ The opposite function of {{ISOWEEKDATE}}