A goto solution for picking date and time ranges. Date-only, time-only or mixed date & time modes are supported. You can use it with one or two inputs for start and end range.
Can be used as a component along with other mobiscroll form elements or as a directive on any input or field.

Shipping with useful features for a great UX, including:

  • Usage on mobile and desktop with responsive features
  • Date, time or date & time ranges
  • Calendar view or scroller controls
  • Usage on mobile and desktop with responsive features
  • Validation with disabled dates, min & max for restricting selection
  • Marked, colored days and day labels
  • Variable week view
  • Multiple month view
  • Week counter
  • Fullscreen, modal, popup and inline display support
  • RTL Support
  • Full localization


Interested in date and/or time selection? Other demos that could be useful:

Calendar Date & Time Event Calendar


Date & Time Range demos available for other frameworks.

Viewing demos & code for

Range - Date range

Choose demo
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {
    var now = new Date(),
        week = [now, new Date(now.getFullYear(), now.getMonth(), now.getDate() + 6, 23, 59)];

    $('#demo').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        startInput: '#start',
        endInput: '#end'
    });

    $('#date').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        startInput: '#startDate',
        endInput: '#endDate',
        controls: ['date']
    });

    $('#demo-non-form').mobiscroll().range({
        theme: '',
        lang: '',
        display: ''
    });

    $('#demo-external').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        showOnTap: false,
        onInit: function (event, inst) {
            inst.setVal(week, true);
        }
    });

    $('#show').click(function () {
        $('#demo-external').mobiscroll('show');
        return false;
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">The range can be used inside a mobiscroll form or on any input.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Two inputs inside Mobiscroll Form</div>
        <label>
            From
            <input id="start" placeholder="Please Select ..." readonly />
        </label>
        <label>
            Until
            <input id="end" placeholder="Please Select ..." readonly />        
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Date scroller</div>
        <label>
            From
            <input id="startDate" placeholder="Please Select ..." readonly />
        </label>
        <label>
            Until
            <input id="endDate" placeholder="Please Select ..." readonly />        
        </label>
    </div>
    <div id="demo"></div>
    <div id="date"></div>
    <div class="mbsc-form-group mbsc-padding">
        <p class="mbsc-thin">Use it on any input or non-mobiscroll form.</p>
    </div>
</div>
<div class="demo-container">
    <label>Range</label>
    <input id="demo-non-form" class="demo-non-form" placeholder="Please Select..." />
    <label>External button</label>
    <div class="external-container">
        <input id="demo-external" class="demo-non-form" />
        <button id="show" class="external-button">Show</button>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

.external-container {
    display: flex;
}

.external-container button.external-button {
    font-weight: 400;
    padding: 10px;
    margin: 6px 0 12px 16px;
}

Range - Time range

Choose demo
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {
    
    var now = new Date(),
        twoHours = [now, new Date(now.getFullYear(), now.getMonth(), now.getDate(), now.getHours(), now.getMinutes() + 120)];

    $('#demo').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        startInput: '#startTime',
        endInput: '#endTime',
        controls: ['time']
    });

    $('#demo-non-form').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        controls: ['time']
    });
    
    $('#demo-external').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        controls: ['time'],
        showOnTap: false,
        onInit: function (event, inst) {
            inst.setVal(twoHours, true);
        }
    });

    $('#show').click(function () {
        $('#demo-external').mobiscroll('show');
        return false;
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">The range can be used inside a mobiscroll form or on any input.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Two inputs inside Mobiscroll Form</div>
        <label>
            From
            <input id="startTime" placeholder="Please Select ..." readonly />
        </label>
        <label>
            Until
            <input id="endTime" placeholder="Please Select ..." readonly />        
        </label>
    </div>
    <div id="demo"></div>
    <div class="mbsc-form-group mbsc-padding">
        <p class="mbsc-thin">Use it on any input or non-mobiscroll form.</p>
    </div>
</div>
<div class="demo-container">
    <label>Range</label>
    <input id="demo-non-form" class="demo-non-form" placeholder="Please Select..." />
    <label>External button</label>
    <div class="external-container">
        <input id="demo-external" class="demo-non-form" />
        <button id="show" class="external-button">Show</button>
    </div>
</div>
.demo-non-form {
    color: initial;
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: arial, verdana, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.demo-container {
    padding: 0 1em;
}

.external-container {
    display: flex;
}

.external-container button.external-button {
    font-weight: 400;
    padding: 10px;
    margin: 6px 0 12px 16px;
}

Range - Date and time range

Choose demo
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var now = new Date(),
        week = [now, new Date(now.getFullYear(), now.getMonth(), now.getDate() + 6, 23, 59)];

    $('#demo').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        controls: ['calendar', 'time'],
        startInput: '#startDate',
        endInput: '#endDate',
        onInit: function (event, inst) {
            inst.setVal(week, true);
        }
    });

    $('#range').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        startInput: '#startRange',
        endInput: '#endRange',
        controls: ['date', 'time'],
        dateWheels: '|D M d|',
        cssClass: 'scroller-range',
        onInit: function (event, inst) {
            inst.setVal(week, true);
        }
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Calendar</div>
        <label>
            From
            <input id="startDate" readonly />
        </label>
        <label>
            Until
            <input id="endDate" readonly />        
        </label>
    </div>
    <div id="demo"></div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Scroller</div>
        <label>
            Range start
            <input id="startRange" readonly />
        </label>
        <label>
            Range end
            <input id="endRange" readonly />        
        </label>
    </div>
    <div id="range"></div>
</div>
.demo-display-inline input,
.demo-display-inline label,
.demo-display-inline br,
.scroller-range .mbsc-cal-tabs {
    display: none;
}

Range - Min and Max

Choose demo
mobiscroll.settings = {
    theme: '',
    lang: '',
    display: ''
};

$(function () {
    var now = new Date(),
        yesterday = new Date(new Date().setDate(new Date().getDate() - 1)),
        tomorrow = new Date(new Date().setDate(new Date().getDate() + 1)),
        nextMonths = new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()),
        day = 24 * 60 * 60 * 1000;

    $('#demo').mobiscroll().range({
        max: yesterday
    });

    $('#future').mobiscroll().range({
        min: tomorrow
    });

    $('#next').mobiscroll().range({
        max: nextMonths,
        min: tomorrow
    });

    $('#min').mobiscroll().range({
        minRange: 5 * day
    });

    $('#max').mobiscroll().range({
        maxRange: 10 * day
    });

    $('#minmax').mobiscroll().range({
        minRange: 5 * day,
        maxRange: 10 * day
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Pick a range</div>
        <label>
            Past range
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Future range
            <input id="future" placeholder="Please Select..." />
        </label>
        <label>
            Next 6 months
            <input id="next" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Specify range length</div>
        <label>
            Min 5 days
            <input id="min" placeholder="Please Select..." />
        </label>
        <label>
            Max 10 days
            <input id="max" placeholder="Please Select..." />
        </label>
        <label>
            5-10 days
            <input id="minmax" placeholder="Please Select..." />
        </label>
    </div>
</div>

Range - Invalid days

Choose demo
mobiscroll.settings = {
    theme: '',
    lang: '',
    display: ''
};

$(function () {

    $('#demo').mobiscroll().range({
        invalid: [
            new Date(2018, 1, 3),
            new Date(2018, 1, 11),
            new Date(2018, 1, 12)
        ],
        defaultValue: [new Date(2018, 1, 17), new Date(2018, 1, 23)]
    });


    $('#week').mobiscroll().range({
        invalid: [
            'w0',
            'w6'
        ]
    });

    $('#daterange').mobiscroll().range({
        invalid: [
            { start: new Date(2018, 1, 3), end: new Date(2018, 1, 9) },
            { start: new Date(2018, 1, 24), end: new Date(2018, 2, 2) }
        ],
        defaultValue: [new Date(2018, 1, 17), new Date(2018, 1, 23)]
    });

    $('#scroller').mobiscroll().range({
        invalid: [
            'w0',
            'w6'
        ],
        controls: ['date'],
        defaultValue: [new Date(2018, 1, 17), new Date(2018, 1, 23)]
    });

    $('#time').mobiscroll().range({
        controls: ['time'],
        steps: {
            minute: 30
        },
        invalid: [
            { d: new Date(), start: '10:00', end: '10:00' },
            { d: new Date(), start: '10:30', end: '10:30' },
            { d: new Date(), start: '11:00', end: '11:00' },
            { d: new Date(), start: '12:30', end: '12:30' }
        ]
    })

    $('#timerange').mobiscroll().range({
        controls: ['time'],
        invalid: [
            { start: '07:00', end: '09:00' },
            { start: '13:00', end: '15:00' }
        ]
    })

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Disabling dates makes them unavailable for start and end dates.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Invalidating dates</div>
        <label>
            Exact dates
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Weekdays
            <input id="week" placeholder="Please Select..." />
        </label>
        <label>
            Ranges
            <input id="daterange" placeholder="Please Select..." />
        </label>
        <label>
            Scroller
            <input id="scroller" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Invalidating time</div>
        <label>
            Exact
            <input id="time" placeholder="Please Select..." />
        </label>
        <label>
            Range
            <input id="timerange" placeholder="Please Select..." />
        </label>
    </div>
</div>

Range - Scroll direction

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        calendarScroll: 'vertical'
    });

    $('#demo-horizontal').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        calendarScroll: 'horizontal'
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">The calendar can be navigated with horizontal or vertical scrolling.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Month change direction</div>
        <label>
            Vertical
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Horizontal
            <input id="demo-horizontal" type="text" placeholder="Please Select..." />
        </label>
    </div>
</div>

Range - RTL Support

Choose demo
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        rtl: true
    });

    $('#date').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        rtl: true,
        controls: ['date']
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Right to left rendering</div>
        <label>
            Calendar
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Scroller
            <input id="date" placeholder="Please Select..." />
        </label>
    </div>
</div>

Range - Presets

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {
    var inst,
        now = new Date(),
        curr = new Date(),
        firstday = new Date(curr.setDate(curr.getDate() - curr.getDay())),
        lastday = new Date(curr.setDate(curr.getDate() - curr.getDay() + 6));

    inst = $('#demo').mobiscroll().range({
        lang: '',
        theme: '',
        display: 'inline',
        layout: 'liquid',
        fromText: '',
        toText: ''
    }).mobiscroll('getInst');

    $('.md-today').on('click', function (ev) {
        mobiscroll.toast({
            message: 'Today Selected'
        });
        inst.setVal([now, now], true);
    });

    $('.md-yesterday').on('click', function (ev) {
        var yesterday = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 1);
        mobiscroll.toast({
            message: 'Yesterday Selected'
        });
        inst.setVal([yesterday, yesterday], true);
    });

    $('.md-week').on('click', function (ev) {
        mobiscroll.toast({
            message: 'This Week Selected'
        });
        inst.setVal([firstday, lastday], true);
    });

    $('.md-month').on('click', function (ev) {
        mobiscroll.toast({
            message: 'Last Month Selected'
        });
        inst.setVal([new Date(now.getFullYear(), now.getMonth() - 1, 1), new Date(now.getFullYear(), now.getMonth(), 0)], true);
    });

});
<div class="md-presets">
    <div class="md-range-filter" style="display:none" mbsc-form>
        <h4 class="md-header">Filter Results by</h4>
        <div class="mbsc-padding">
            <button class="md-filter-btn md-today mbsc-btn-block">Today (3)</button>
            <button class="md-filter-btn md-yesterday mbsc-btn-block">Yesterday (8)</button>
            <button class="md-filter-btn md-week mbsc-btn-block">This Week (37)</button>
            <button class="md-filter-btn md-month mbsc-btn-block">Last Month (65)</button>
        </div>
        <div class="mbsc-form-group">
            <div class="mbsc-form-group-title">Or by a custom range</div>
            <div id="demo"></div>
        </div>
    </div>
</div>
.demo-presets {
    padding: 0 !important;
}

.md-range-filter .md-header {
    text-align: center;
    padding: 1em .75em 0 .75em;
    margin: 0;
}

.md-range-filter .mbsc-form-group-title {
    padding-top: 0;
    text-align: center;
}

.md-range-filter .mbsc-ios .dw-dr {
    height: 20px;
}

Range - Flight booking

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var now = new Date(),
        oneWay = false,
        range,
        departureDate,
        returnDate;

    range = $('.md-leaving-date').mobiscroll().range({
        display: '',
        endInput: '.md-return-date',
        min: now,
        showSelector: false,
        onSetDate: function (event, inst) {
            if (oneWay && event.control == 'calendar' && event.active == 'start') {
                inst._isVisible = false;
                inst.setActiveDate('start');
                inst._isVisible = true;
            }
            if (inst._markup) {
                inst._isValid = true;
                inst._markup.find('.mbsc-fr-btn-s .mbsc-fr-btn').removeClass('mbsc-fr-btn-d' + (oneWay ? ' mbsc-disabled' : ''));
            }
        },
        onBeforeClose: function () {
            if (oneWay) {
                return true;
            }
        },
        onSet: function (event, inst) {
            var values = inst.getVal();
            departureDate = values[0];
            if (!oneWay) {
                returnDate = values[1];
            }
        }
    }).mobiscroll('getInst');

    $('.md-place-select').mobiscroll().select({
        display: '',
        placeholder: 'Please select a city',
        multiline: 2,
        height: 50,
        data: {
            url: 'https://trial.mobiscroll.com/airports/',
            remoteFilter: true,
            dataType: 'jsonp',
            processResponse: function (data) {
                var i,
                    item,
                    ret = [];

                if (data) {
                    for (i = 0; i < data.length; i++) {
                        item = data[i];
                        ret.push({
                            value: item.code,
                            text: item.name,
                            html: '<div style="font-size:16px;line-height:18px;">' + item.name + '</div><div style="font-size:10px;line-height:12px;">' + item.location + ', ' + item.code + '</div>'
                        });
                    }
                }
                return ret;
            }
        },
        filter: true
    });


    $('.md-flight-type').on('change', function () {
        oneWay = this.value == 'oneway';
        $('.md-return-date').prop('disabled', oneWay);
        if (oneWay) {
            range.setVal([departureDate], true);
            range.option({
                defaultValue: [departureDate]
 
            });
        } else {
            returnDate = new Date(departureDate.getFullYear(), departureDate.getMonth(), departureDate.getDate() + 4);
            range.setVal([departureDate, returnDate], true);
        }
    });

    departureDate = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 3);
    returnDate = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 7);
    range.setVal([departureDate, returnDate], true);

});
<div id="demo" class="md-flight-booking" mbsc-form>

    <label>
            Round trip
            <input type="radio" data-role="segmented" value="round" name="triptype" class="md-flight-type" checked />
        </label>
    <label>
            One way
            <input type="radio" data-role="segmented" value="oneway" name="triptype" class="md-flight-type md-one-way" />
        </label>
    <div class="mbsc-form-group">

        <label>
        Origin
        <select class="md-place-select">
            <option value="LTN">London Luton</option>
        </select>
    </label>
        <label>
        Destination
        <select class="md-place-select">
            <option>Please select a city</option>
        </select>
    </label>

        <label>
            Leaving
            <input type="text" class="md-leaving-date" />
        </label>

        <label>
            Returning
            <input type="text" class="md-return-date" />
        </label>
    </div>
    <div class="mbsc-form-group">
        <label>
        Adults
        <span class="mbsc-desc">From 14 years</span>
        <input type="number" data-role="stepper" min="1" value="1" max="15" data-val="left" />
    </label>

        <label>
        Children
        <span class="mbsc-desc">2-14 years</span>
        <input type="number" data-role="stepper" max="15" data-val="left" />
    </label>

        <label>
        Infant
        <span class="mbsc-desc">0-2 years</span>
        <input type="number" data-role="stepper" max="10" data-val="left" />
    </label>
        <label>
        Economy
        <input type="radio" data-role="segmented" name="flight_type" checked />
    </label>
        <label>
        Comfort
        <input type="radio" data-role="segmented" name="flight_type" />
    </label>
        <label>
        Business
        <input type="radio" data-role="segmented" name="flight_type" />
    </label>
    </div>
    <div class="mbsc-btn-group-block">
        <button>Find Flights</button>
    </div>
</div>
/* range inputs */

.md-flight-booking .md-time-range {
    overflow: hidden;
    width: 99%;
}

.mbsc-ios .md-time-range {
    background: #fff;
}

.md-time-range .mbsc-input {
    float: left;
    width: 50%;
    box-sizing: border-box;
}

.mbsc-ios .md-time-range .mbsc-input {
    display: block;
}

.mbsc-ios .md-time-range .mbsc-input .mbsc-label {
    font-size: 14px;
    padding-left: 1.14285em;
    padding-top: 0.75em;
    line-height: 22px;
}

.mbsc-ios .md-time-range .mbsc-input .mbsc-label {
    width: 100%;
}

.md-time-range .mbsc-input:first-child {
    padding-right: .5em;
}

.md-time-range .mbsc-input:last-child {
    padding-left: .5em;
}

Range - New event

Choose demo
mobiscroll.settings = {
    theme: '',
    lang: '',
    display: ''
};

$(function () {

    $('#demo').mobiscroll().range({
        min: new Date(),
        controls: ['date'],
        endInput: '.md-time-end',
        dateFormat: 'M dd D yy'
    });

    $('.md-time-select').mobiscroll().select();

});
<div id="demo-form" class="md-range-event" style="display:none" mbsc-form>
    <div class="md-header">
        <button id="show" class="mbsc-btn-flat md-cancel-btn">Cancel</button>
        <div class="mbsc-header-txt">New event</div>
        <button id="show" class="mbsc-btn-flat md-add-btn">Add</button>
    </div>

    <label>
        Title
        <input type="text" placeholder="Name of the event"/>
    </label>
    <label>
        Location
        <input type="text" placeholder="Where will it be?" />
    </label>

    <label>
        All day
        <input data-role="switch" type="checkbox" checked>
    </label>

    <label>
        Starts
        <input id="demo" class="md-time" type="text" placeholder="Event start"/>
    </label>
    <label>
        Ends
        <input class="md-time md-time-end" type="text" placeholder="Event end"/>
    </label>

    <label>
        Travel Time
        <select class="md-time-select">
            <option value="none">None</option>
            <option value="5">5 minutes</option>
            <option value="30">30 minutes</option>
            <option value="60">1 hour</option>
            <option value="90">1 hour and 30 minutes</option>
            <option value="120">2 hours</option>
        </select>
    </label>

    <label>
        Show as busy
        <input type="radio" data-role="segmented" name="type" checked>
    </label>
    <label>
        Show as free
        <input type="radio" data-role="segmented" name="type">
    </label>

    <label>
		Notes
        <textarea placeholder="Enter notes, URL, comments"></textarea>
    </label>
</div>
.demo-newevent {
    padding: 0 !important;
}

.md-range-event .md-header {
    position: relative;
    background: #4ECCC4;
    padding: 1em;
    text-align: center;
    margin-bottom: 1em;
}

.mbsc-material.md-range-event .md-header,
.md-range-event .mbsc-material .md-header {
    background: #009688;
}

.mbsc-android-holo.md-range-event .md-header,
.md-range-event .mbsc-android-holo .md-header {
    background: #31c6e7;
}

.mbsc-ios-classic.md-range-event .md-header,
.mbsc-ios.md-range-event .md-header,
.md-range-event .mbsc-ios .md-header {
    background: #1272dc;
    margin: 0;
    z-index: 1;
}

.mbsc-ios-dark.md-range-event .md-header,
.md-range-event .mbsc-ios-dark .md-header {
    background: #ff8b0f;
    margin: 0;
    color: #a1a1a1;
}

.mbsc-wp.md-range-event .md-header,
.md-range-event .mbsc-wp .md-header {
    background: #1a9fe0;
}

.md-range-event .md-header .mbsc-header-txt {
    display: inline-block;
    color: #fff;
    font-size: 18px;
}

.md-range-event .md-header .mbsc-btn-flat {
    margin: 0;
    padding: 0 .5em 0 .5em;
    height: 30px;
    color: #fff;
    text-transform: capitalize;
}

.md-range-event .md-header .md-cancel-btn,
.md-range-event .md-header .md-add-btn {
    position: absolute;
    top: 50%;
    margin-top: -15px;
}

.md-range-event .md-header .mbsc-btn-flat.mbsc-active {
    background: rgba(255, 255, 255, 0.2);
}

.md-range-event .md-header .md-add-btn {
    right: .75em;
}

.md-range-event .md-header .md-cancel-btn {
    left: .75em;
}

Range - Data types

Choose demo
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var dateInstance = $('#demo-date').mobiscroll().range({
            theme: '',
            lang: '',
            display: '',
            onSet: function (event, inst) {
                updateValue('returnVal', inst);
            }
        }).mobiscroll('getInst'),

        isoInstance = $('#demo-iso').mobiscroll().range({
            theme: '',
            lang: '',
            display: '',
            returnFormat: 'iso8601',
            onSet: function (event, inst) {
                updateValue('returnISO', inst);
            }
        }).mobiscroll('getInst'),

        localeInstance = $('#demo-locale').mobiscroll().range({
            theme: '',
            lang: '',
            display: '',
            returnFormat: 'locale',
            onSet: function (event, inst) {
                updateValue('returnLocale', inst);
            }
        }).mobiscroll('getInst'),

        momentInstance = $('#demo-moment').mobiscroll().range({
            theme: '',
            lang: '',
            display: '',
            returnFormat: 'moment',
            onSet: function (event, inst) {
                updateValue('returnMoment', inst);
            }
        }).mobiscroll('getInst');

    $('#setDate').click(function () {
        $('#demo').mobiscroll('setVal', [new Date(1995, 11, 17, 15, 24), new Date(1995, 11, 28, 11, 45)], true);
        updateValue('returnVal', dateInstance);
    });

    $('#setISO').click(function () {
        $('#demo-iso').mobiscroll('setVal', ['2008-09-15T15:53:00', '2008-09-23T16:15:00'], true);
        updateValue('returnISO', isoInstance);
    });

    $('#setLocale').click(function () {
        $('#demo-locale').mobiscroll('setVal', ['04/25/2010 8:15 AM', '05/04/2010 10:30 AM'], true);
        updateValue('returnLocale', localeInstance);
    });

    $('#setMoment').click(function () {
        // make sure that moment js is loaded
        $('#demo-moment').mobiscroll('setVal', [moment([2018, 3, 18, 15]), moment([2018, 3, 26, 10])], true);
        updateValue('returnMoment', momentInstance);
    });

    function updateValue(id, inst) {
        if (id == 'returnMoment') {
            document.getElementById(id).innerHTML = inst.getVal()[0].format() + ', ' + inst.getVal()[1].format();
        } else {
            document.getElementById(id).innerHTML = inst.getVal();
        }
    }

});
<div mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Javascript date objects, ISO 8601 date strings and moment.js is supported!</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Working with Js Date Objects</div>
        <div class="mbsc-btn-group-block">
            <button id="setDate" class="mbsc-btn-primary">Set: Sun Dec 17 1995 03:24:00 GMT - Thu Dec 28 1995 11:45:00 GMT+0200</button>
        </div>
        <div>
            <label>
                Date object
                <input id="demo-date" />
            </label>
        </div>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        Return value: <text id="returnVal"></text>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Working with Date strings</div>
        <div class="mbsc-btn-group-block">
            <button id="setISO" class="mbsc-btn-primary">Set: 2008-09-15T15:53:00 - 2008-09-23T16:15:00</button>
        </div>
        <div>
            <label>
                ISO string
                <input id="demo-iso" />
            </label>
        </div>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        Return value: <text id="returnISO"></text>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Working with Localized Strings</div>
        <div class="mbsc-btn-group-block">
            <button id="setLocale" class="mbsc-btn-primary">Set: 04/25/2010 8:15 AM - 05/04/2010 10:30 AM</button>
        </div>
        <div>
            <label>
                Locale format
                <input id="demo-locale" />
            </label>
        </div>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        Return value: <text id="returnLocale"></text>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Working with Moment JS Objects</div>
        <div class="mbsc-btn-group-block">
            <button id="setMoment" class="mbsc-btn-primary">Set: 2018-04-18T15:00:00+03:00 - 2018-04-26T10:00:00+03:00</button>
        </div>
        <div>
            <label>
                Moment JS
                <input id="demo-moment" />
            </label>
        </div>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        Return value: <text id="returnMoment"></text>
    </div>
</div>

Range - Event handlers

Choose demo
$(function () {

    $('#demo').mobiscroll().range({
        theme: '',
        lang: '',
        display: '',
        onInit: function (event, inst) {
            // Your custom event handler goes here
        },
        onMarkupReady: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onPosition: function (event, inst) {
            // Your custom event handler goes here
        },
        onShow: function (event, inst) {
            // Your custom event handler goes here
        },
        onSet: function (event, inst) {
            // Your custom event handler goes here
        },
        onItemTap: function (event, inst) {
            // Your custom event handler goes here
        },
        onDestroy: function (event, inst) {
            // Your custom event handler goes here
        },
        onClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onChange: function (event, inst) {
            // Your custom event handler goes here
        },
        onCancel: function (event, inst) {
            // Your custom event handler goes here
        },
        onBeforeClose: function (event, inst) {
            // Your custom event handler goes here
        },
        onClear: function (event, inst) {
            // Your custom event handler goes here
        },
        onDayChange: function (event, inst) {
            // Your custom event handler goes here
        },
        onPageChange: function (event, inst) {
            // Your custom event handler goes here
        },
        onPageLoaded: function (event, inst) {
            // Your custom event handler goes here
        },
        onPageLoading: function (event, inst) {
            // Your custom event handler goes here
        },
        onSetDate: function (event, inst) {
            // Your custom event handler goes here
        },
        onTabChange: function (event, inst) {
            // Your custom event handler goes here
        }
    });
});
<input id="demo" placeholder="Please Select..." />
Clear event log
EVENTS FIRED: 

Range - Marked, colored & labels

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    var now = new Date();

    $('#demo-marked').mobiscroll().range({
        display: 'inline',
        showSelector: false,
        marked: [
            { d: '5/1', color: '#ffc400' },
            { d: '12/24', color: '#ffee00' },
            { d: '12/25', color: 'red' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 4) },
            { d: new Date(now.getFullYear(), now.getMonth() - 2, 13) },
            { d: new Date(now.getFullYear(), now.getMonth(), 2), color: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth(), 6), color: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 11), color: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 19), color: '#89d7c9' },
            { d: new Date(now.getFullYear(), now.getMonth(), 28), color: '#ea4986' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#f13f77' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#89d7c9' },
            { d: new Date(now.getFullYear(), now.getMonth(), 13), color: '#8dec7d' },
            { d: new Date(now.getFullYear(), now.getMonth(), 21), color: '#ffc400' },
            { d: new Date(now.getFullYear(), now.getMonth(), 21), color: '#8dec7d' },
            { start: new Date(now.getFullYear(), now.getMonth() + 1, 15), end: new Date(now.getFullYear(), now.getMonth() + 1, 18), color: '#f4511e' }
        ]
    });

    $('#demo-colored').mobiscroll().range({
        display: 'inline',
        showSelector: false,
        colors: [
            { d: '12/8', background: '#9ccc65' },
            { d: '5/1', background: 'red' },
            { d: '12/24', background: "#fff568" },
            { d: '12/25', background: "#e88080" },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 4), background: '#cfd8dc' },
            { d: new Date(now.getFullYear(), now.getMonth() + 2, 24), background: '#9575cd' },
            { d: new Date(now.getFullYear(), now.getMonth() - 2, 13), background: '#d4e157' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 6), background: "#f4511e" },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 6), background: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 22), background: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 11), background: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 29), background: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 2), background: '#46c4f3' },
            { d: new Date(now.getFullYear(), now.getMonth(), 3), background: '#7e56bd' },
            { d: new Date(now.getFullYear(), now.getMonth(), 11), background: '#f13f77' },
            { d: new Date(now.getFullYear(), now.getMonth(), 19), background: '#8dec7d' },
            { d: new Date(now.getFullYear(), now.getMonth(), 28), background: '#ea4986' },
            { start: new Date(now.getFullYear(), now.getMonth() + 1, 15), end: new Date(now.getFullYear(), now.getMonth() + 1, 18), text: 'Conference', background: '#f4511e' }
        ]
    });

    $('#demo-labels').mobiscroll().range({
        display: 'inline',
        showSelector: false,
        labels: [
            { d: '12/25', text: 'Christmas', color: "#f48fb1" },
            { d: '1/1', text: 'New year' },
            { d: '12/1', text: 'Meeting', color: '#ffc400' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 4), text: 'Spa day', color: '#cfd8dc' },
            { d: new Date(now.getFullYear(), now.getMonth() + 2, 24), text: 'BD Party', color: '#9ccc65' },
            { d: new Date(now.getFullYear(), now.getMonth() - 2, 13), text: 'Exams', color: '#d4e157' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 6), text: 'Trip', color: "#f4511e" },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 6), color: '#46c4f3', text: 'Pizza Night' },
            { d: new Date(now.getFullYear(), now.getMonth() + 1, 22), color: '#7e56bd', text: 'Beerpong' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 11), color: '#46c4f3', text: 'Anniversary' },
            { d: new Date(now.getFullYear(), now.getMonth() - 1, 29), color: '#7e56bd', text: 'Pete BD' },
            { d: new Date(now.getFullYear(), now.getMonth(), 2), color: '#46c4f3', text: 'Ana BD' },
            { d: new Date(now.getFullYear(), now.getMonth(), 3), color: '#7e56bd', text: 'Concert' },
            { d: new Date(now.getFullYear(), now.getMonth(), 11), color: '#f13f77', text: 'Trip' },
            { d: new Date(now.getFullYear(), now.getMonth(), 19), color: '#8dec7d', text: 'Math exam' },
            { d: new Date(now.getFullYear(), now.getMonth(), 28), color: '#ea4986', text: 'Party' },
            { start: new Date(now.getFullYear(), now.getMonth() + 1, 15), end: new Date(now.getFullYear(), now.getMonth() + 1, 18), text: 'Conference', color: '#f4511e' }
        ]
    });

});
<div id="md-form" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Marked days</div>
        <label>
            <input id="demo-marked" type="hidden"  />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Colored days</div>
        <label>
            <input id="demo-colored" type="hidden" />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Labels</div>
        <label>
            <input id="demo-labels" type="hidden" />
        </label>
    </div>
</div>

Range - Display modes

Choose demo
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo-bottom').mobiscroll().range({
        display: 'bottom'
    });

    $('#demo-top').mobiscroll().range({
        display: 'top'
    });

    $('#demo-center').mobiscroll().range({
        display: 'center'
    });

    $('#demo-bubble').mobiscroll().range({
        display: 'bubble'
    });

    $('#demo-inline').mobiscroll().range({
        display: 'inline',
        layout: 'liquid'
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Try different display modes</div>
        <label>
            Bottom
            <input id="demo-bottom" placeholder="Please Select..." />
        </label>
        <label>
            Top
            <input id="demo-top" type="text" placeholder="Please Select..." />
        </label>
        <label>
            Center
            <input id="demo-center" type="text" placeholder="Please Select..." />
        </label>
        <label>
            Bubble
            <input id="demo-bubble" type="text" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group mbsc-padding">
        <p class="mbsc-thin">With inline display you can embed the Range component in almost any markup or form.</p>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Embedded range picker</div>
        <div id="demo-inline"></div>
    </div>
</div>

Range - Weeks

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: ''
};

$(function () {

    $('#demo-one-week').mobiscroll().range({
        display: 'inline',
        weeks: 1,
        showSelector: false
    })

    $('#demo-two-week').mobiscroll().range({
        display: 'inline',
        weeks: 2,
        showSelector: false
    })

    $('#demo-three-week').mobiscroll().range({
        display: 'inline',
        weeks: 3,
        showSelector: false
    })

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title"> One week view</div>
        <label>
           
            <input id="demo-one-week"  type="hidden" />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title"> Two week view</div>
        <label>
            <input id="demo-two-week" type="hidden" />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title"> Three week view</div>
        <label>
            <input id="demo-three-week" type="hidden" />
        </label>
    </div>
</div>

Range - Multi month view

Choose demo
// Use the settings object to change the theme
mobiscroll.settings = {
    lang: '',
    theme: '',
    yearChange: false
};

$(function () {

    $('#demo-bubble-two').mobiscroll().range({
        display: 'bubble',
        months: 2
    });

    $('#demo-bubble-three').mobiscroll().range({
        display: 'bubble',
        months: 3
    });

    $('#demo-bubble-four').mobiscroll().range({
        display: 'bubble',
        months: 4
    });

    $('#demo-bubble').mobiscroll().range({
        display: 'bubble',
        months: 'auto'
    });

    $('#demo-two').mobiscroll().range({
        display: 'center',
        months: 2
    });

    $('#demo-three').mobiscroll().range({
        display: 'center',
        months: 3
    });

    $('#demo-four').mobiscroll().range({
        display: 'center',
        months: 4
    });

    $('#demo').mobiscroll().range({
        display: 'center',
        months: 'auto'
    });

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Popover range</div>
        <label>
            Two months
            <input id="demo-bubble-two" placeholder="Please Select..." />
        </label>
        <label>
            Three months
            <input id="demo-bubble-three" placeholder="Please Select..." />
        </label>
        <label>
            Four months
            <input id="demo-bubble-four" placeholder="Please Select..." />
        </label>
        <label>
            Auto
            <input id="demo-bubble" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Center positioned range</div>
        <label>
            Two months
            <input id="demo-two" placeholder="Please Select..." />
        </label>
        <label>
            Three months
            <input id="demo-three" placeholder="Please Select..." />
        </label>
        <label>
            Four months
            <input id="demo-four" placeholder="Please Select..." />
        </label>
        <label>
            Auto
            <input id="demo" placeholder="Please Select..." />
        </label>
    </div>
</div>
light
dark
light
dark

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 35 components, including with the Framework license.



Mobiscroll for JQuery $395


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6 or Ionic 2/3. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 35 components, including with the Framework license.



Mobiscroll for JQuery $395


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6 and Ionic 2/3
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 35 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6 and Ionic 2/3
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6 or Ionic 2/3.

Use it when you are building your app or website with React.

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Please sign in or start a free trial to download

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Select a framework
Email address
Select a framework

Customize & try demos locally
You can download and use Mobiscroll Forms for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow steps to install mobiscroll and use example
Close window

Step 1.

Install the Mobiscroll CLI from npm (skip this step if it's already installed).

Copy command
$ npm install -g @mobiscroll/cli

Step 2.

Run the config command in the root folder of the Ionic project.
You will be prompted to log in with your mobiscroll account (set password here).
If you don't have an app, create a starter with the Ionic CLI $ ionic start myStarterApp tabs

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite
If your app is using lazy loading, add --lite --lazy and for Ionic Pro run mobiscroll config ionic-pro instead.

Step 3.

Copy the code into your app.
The HTML goes into the markup, the Typescript into the TS file and the CSS into the page stylesheet (scss file).

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app.

Copy command
$ ionic serve

Looking for an already configured app? Download kitchen sink for Ionic

Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters Please avoid dangerous characters like '<' or '&'
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

Please extract the zip file and simply open the demos in your favorite browser. For instructions on how to install Mobiscroll in your project follow this guide.


Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

The demos are using an in-browser TypeScript transpiler app as base. Please extract the zip file and open the index.html on your local development server.

Alternatively you can use live-server. For installation and usage, open a terminal window and follow these steps.

Step 1. Install live-server
$ npm install -g live-server
Step 2. Start server & run app
$ live-server

Let us know if we can help and enjoy!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The demos are using Babel's in-browser ES6 and JSX transformer. Please extract the zip file and open the demos in your browser.


Let us know if we can help and enjoy!

Demos
Controls
Calendar 19
Cards 10
Color 8
Date & Time 13
Event Calendar 15
Forms 21
Image 5
Listview 17
Measurement 9
Navigation 7
Number 6
Numpad 12
Option List 4
Range 16
Scroller 5
Scrollview 4
Select 11
Styling 4
Timer 4
Timespan 5
Treelist 5
Widget 9
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos