Current time in HH:MM format

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
klevis miho
Forum Contributor
Posts: 413
Joined: Wed Oct 29, 2008 2:59 pm
Location: Albania
Contact:

Current time in HH:MM format

Post by klevis miho »

How can I get the current time in HH:MM format?
Or what have I done wrong in this code:
var currentTime = new Date();
var timenow = currentTime.format("HH:MM");
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Current time in HH:MM format

Post by Jonah Bron »

Perhaps you could look it up?
Post Reply