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");
Current time in HH:MM format
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Current time in HH:MM format
Perhaps you could look it up?