Created
July 18, 2014 16:45
-
-
Save bultas/524a6199a7a053420428 to your computer and use it in GitHub Desktop.
Two digits (great for date formating to MM or DD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function twoDigits(n) { | |
return n < 10 ? '0' + n : '' + n; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment