I want to display a label showing the current time: I used to get the current time in 'hh:mm:ss':
var dt = new Date();
var time = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
o/p: Data current as of 14:20:35
now how can i convert this time into an hourly format: Data current as of 2:30pm-PST
( assuming the current time is 2:30pm)?
Any ideas??
Thanks!