using JQRangeSlider for dateslider

s t
s t used Ask the Experts™
on
How to extract user defined date range values using JQRangeSlider in DD/MM/YYYY HH:MM:SS formate???
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:
var nn = function(n) {
    return n>9?n:"0"+n;
}
var toDDMMYYYY_HHMMSS = function(d) {
     return "" + nn(d.getDate()) + "-" + nn(d.getMonth() + 1) + "-" + d.getFullYear() + " " + nn(d.getHours()) + ":" + nn(d.getMinutes()) + ":" + nn(d.getSeconds());
}
var dateSliderMax = toDDMMYYYY_HHMMSS($("#dateSlider").dateRangeSlider("max"));
var dateSliderMin = toDDMMYYYY_HHMMSS($("#dateSlider").dateRangeSlider("min"));

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial