I have two time in the format \"HH:MM\" i want to compare them i have the following code to get the time of now in my format:
current_time = new Date(); hour
if(Date.parse('01/01/2011 10:20:45') == Date.parse('01/01/2011 5:10:10')) { alert('same'); }else{ alert('different'); } The 1st January is an arbitrary date, doesn't mean anything.