JavaScript Program to Show Current Time In Various Formats

This is a small script that can display the current time in "Military Time" format or "12 Hour Time" format with the push of a button. It shows two radio buttons to change the time format and a text box to display the time.

This is a small script that can display the current time in “Military Time” format or “12 Hour Time” format with the push of a button.

Many people confuse about JavaScript array [] and object {}, so this tutorial will explain the difference in between JavaScript {} and []

 

Scroll to Top