hour format in javascript -
In my JavaScript, Iam using GetHour and GetMinutes function. For example: Current time 2: 03. If I use GetHour () in this case, it returns 2 returns. Instead I need it 02. Can anyone help?
var hours = gohaur () & lt; 10? '0' + Gethore (): Gether ();
Comments
Post a Comment