Time Format as "17:00" in DropDown Box - Node.js Date

Node.js examples for Date:Time Format

Description

Time Format as "17:00" in DropDown Box

Demo Code


Date.padded2 = function(hour) { 
     padded2 = hour.toString(); //ww  w .j  a  va  2s  . co m
     if ((parseInt(hour) < 10) || (parseInt(hour) == null)) 
        padded2="0" + padded2; 
     return padded2; 
}

Related Tutorials