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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -