Javascript Number format2DigitString()
DigitString()
Number.prototype.format2DigitString = function format2DigitString(){ if(this >= 0 && this < 10) { return '0' + String(this); }/*from w w w.ja v a 2s.co m*/ return String(this); }