Template:Two digit year except 00/doc

From MattWiki
Jump to: navigation, search

Convert a year to two digits with zero padding, but years ending in 00 are returned with all digits and no leading zeros.

Tests
1999 -> 99
2000 -> 2000
2001 -> 01
See also