Jump to content

How to calculate time difference between two time picker ?


Recommended Posts


I need to calculate time difference between two time pickers (not datetime picker). To create time picker I have used input type as time .

<input type="time" class="form-control" name="eq_pf" id="eq_pf" value=""> // from time
<input type="time" class="form-control" name="eq_pt" id="eq_pt" value=""> // to time

I have searched and tried many codes but getting NaN or undefined alert.

PS: In database field is of type time

Please do needful, the great Genius mind over here 🙂 to a pure newbie  🙃

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...