Jump to content

Compare jquery time to php time


shah_ankitb

Recommended Posts

I have below code of jquery

$("#slider").slider({min: 0,max: 1440,steps: 5,range: true,values: [ 0, 1440 ],slide: function (event, ui) {    var $this = $(this),values = ui.values;    var val0 = values[0],        val1 = values[1],        minutes0 = parseInt(val0 % 60, 10),        hours0 = parseInt(val0 / 60 % 24, 10),        minutes1 = parseInt(val1 % 60, 10),        hours1 = parseInt(val1 / 60 % 24, 10);   }});

In PHP i have time as 14:00, 15:30. So how to compare PHP time with jquery UI slider timings as i have 0-1440 range.

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...