Check if it is hour

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:

Check if it is hour

Post by klevis miho »

How can I check if something is a hour in this format: HH:mm?
If there is a jquery solution for this it would be better.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Check if it is hour

Post by pickle »

I assume "something" is a string? You could use a regular expression.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply