Template:Datecnum
From Wikipedia, the free encyclopedia
This template computes a number to be used for date comparisons. Arguments consist of a year number (must be provided), and then an optional month number (1-12), and if a month is provided an optional day number.
Examples:
- {{datecnum|2006|1|1}} = 802400
- {{datecnum|2006|1}} = 802400
- {{datecnum|2006}} = 802400
- {{datecnum|2006|1|2}} = 802401
- {{datecnum|2006|2}} = 802431
- {{datecnum|2006|12|31}} = 802771
- {{datecnum|2007}} = 802800