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.