How to format numbers by prepending 0 to single-digit numbers?
Edit (2021): It’s no longer necessary to format numbers by hand like this anymore. This answer was written way-back-when in the distant year of 2011 when IE was important and babel and bundlers were just a wonderful, hopeful dream. I think it would be a mistake to delete this answer; however in case you find … Read more