How can I get the current time in JavaScript and use it in a timepicker?
I tried var x = Date()
and got:
Tue May 15 2012 05:45:40 GMT-0500
But I need only current time, for example, 05:45
How can I assign this to a variable?
How can I get the current time in JavaScript and use it in a timepicker?
I tried var x = Date()
and got:
Tue May 15 2012 05:45:40 GMT-0500
But I need only current time, for example, 05:45
How can I assign this to a variable?