I have buttons with the names of big cities. Clicking them, I want to get local time in them.
$(\'#btnToronto\').click(function () { var hours = ne
with date.js
you can write like this
new Date().toString("hh:mm tt")
cheet sheet is here format specifiers tt is for AM/PM
tt
AM/PM