Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • when i enter 23:00 it gives me 28:80 code ` function TimeDiff() { var start=$('#fTime').val(); var diff =new Date( '01/01/2009 ' + $('#fTime').val())-new Date( '01/01/2009 ' + "03:00 PM" ); var hours=(diff / 1000)+""; var mins=(diff / 1000 / 60 )+""; var diff_time=hours+":"+mins; $('#bReg').val(diff_time); }` Commented Nov 2, 2011 at 7:08