Date & time picker component featuring calendar month view, week view, date scroller and time picker.

Use it on responsive websites and mobile apps. Compatible with mobiscroll forms, custom input and more.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and desktop with responsive features
  • Single and multiple select
  • Week select
  • Date & time select
  • Validation with disabled dates, min & max for restricting selection
  • Marked days
  • Week counter
  • Multiple month view
  • Fullscreen view
  • Modal, popup and inline display support
  • RTL Support
  • Full localization


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

Date & Time Range Event Calendar


Calendar demos available for other frameworks.

Viewing demos & code for

Calendar - Date selection

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

$(function () {

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

    $('#demo-header').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        headerText: '{value}'
    });

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

    $('#demo-external').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        showOnTap: false,
        onInit: function (event, inst) {
            inst.setVal(new Date(), 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 calendar can be used inside a mobiscroll form or on any input.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Inside Mobiscroll Form</div>
        <label>
            Date
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Header text
            <input id="demo-header" placeholder="Please Select..." />
        </label>
    </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>Date</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;
}

Calendar - Multiple day selection

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

$(function () {

    $('#demo').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        select: 'multiple'
    });

    $('#max').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        select: 5,
        headerText: 'Pick up to 5 days'
    });

    $('#count').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        select: 'multiple',
        counter: true
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use the calendar for multiple date selection.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Multiple date selection</div>
        <label>
            Multi-day
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Max days
            <input id="max" placeholder="Please Select..." />
        </label>
        <label>
            Counter
            <input id="count" placeholder="Please Select..." />
        </label>
    </div>
</div>

Calendar - Week selection

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

$(function () {

    var fromMonday = [],
        fromSaturday = [],
        twoWeeks = [],
        i = 0,
        j = 0;
    
    for (i; i < 7; i++) {
        fromMonday.push(new Date(2018, 0, 8 + i));
        fromSaturday.push(new Date(2018, 0, 6 + i));
    }
    
    for (j; j < 14; j++) {
        twoWeeks.push(new Date(2018, 0, 8 + j));
    }

    $('#demo').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        selectType: 'week',
        defaultValue: fromMonday,
        firstSelectDay: 1,
        firstDay: 1
    });

    $('#sat').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        selectType: 'week',
        defaultValue: fromSaturday,
        firstSelectDay: 6,
        firstDay: 1
    });
    
    $('#multi').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        selectType: 'week',
        defaultValue: twoWeeks,
        firstSelectDay: 1,
        firstDay: 1,
        select: 'multiple'
    });
});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Select one or more weeks. First day of week can be configured.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Week selection</div>
        <label>
            Mon-Sun
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Sat-Fri
            <input id="sat" placeholder="Please Select..." />
        </label>
        <label>
            Multiple
            <input id="multi" placeholder="Please Select..." />
        </label>
    </div>
</div>

Calendar - Variable week view

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

$(function () {

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

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

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

});
<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>

Calendar - Setting invalids

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

$(function () {

    $('#demo').mobiscroll().calendar({
        invalid: [
            new Date(2018, 1, 5),
            new Date(2018, 1, 13),
            new Date(2018, 1, 18),
            new Date(2018, 1, 23)
        ],
        defaultValue: new Date(2018, 1, 14)
    });

    $('#rec').mobiscroll().calendar({
        invalid: [
            '12/24',
            '12/25',
            '12/26',
            '12/31'
        ],
        defaultValue: new Date(2018, 11, 10)
    });

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

    $('#range').mobiscroll().calendar({
        invalid: [
            { start: new Date(2018, 11, 21), end: new Date(2018, 11, 31) }
        ],
        defaultValue: new Date(2018, 11, 10)
    });

    $('#val').mobiscroll().calendar({
        invalid: [
            { start: new Date(2018, 11, 21), end: new Date(2018, 11, 31) }
        ],
        valid: [
            { start: new Date(2018, 11, 26), end: new Date(2018, 11, 30) }
        ],
        defaultValue: new Date(2018, 11, 10)
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Invalidating dates can be done a couple different ways. See options below.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Invalidating exact dates</div>
        <div id="demo"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Invalidating recurring dates</div>
        <div id="rec"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Invalidating weekdays</div>
        <div id="week"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Invalidating date ranges</div>
        <div id="range"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Set valid date override inside invalid</div>
        <div id="val"></div>
    </div>
</div>

Calendar - Min & 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());

    $('#demo').mobiscroll().calendar({
        headerText: 'Select your next visit',
        max: nextMonths,
        min: tomorrow
    });

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

    $('#past').mobiscroll().calendar({
        max: yesterday
    });

    $('#time').mobiscroll().calendar({
        controls: ['calendar', 'time'],
        invalid: [
            { start: '00:00', end: '08:59' },
            { start: '17:01', end: '23:59' }
        ]
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Set min and max values to restrict the available dates.</div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Date</div>
        <label>
            Next 6 months
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Future dates
            <input id="future" placeholder="Please Select..." />
        </label>
        <label>
            Past dates
            <input id="past" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Date & Time</div>
        <label>
            With time
            <input id="time" placeholder="Please Select..." />
        </label>
    </div>
</div>

Calendar - 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().calendar({
        display: 'inline',
        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().calendar({
        display: 'inline',
        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().calendar({
        display: 'inline',
        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>

Calendar - Marked days

Choose demo
$(function () {
    var now = new Date();

    $('#demo').mobiscroll().calendar({
        display: 'inline',
        layout: 'liquid',
        theme: '',
        lang: '',
        markedDisplay: 'bottom',
        marked: [{
            d: new Date(now.getFullYear(), now.getMonth(), now.getDate() + 6),
            color: 'rgb(28, 161, 227)'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), now.getDate() + 8),
            color: 'rgb(28, 161, 227)'
        }, {
            d: new Date(now.getFullYear(), now.getMonth(), now.getDate() + 9),
            color: 'rgb(28, 161, 227)'
        }, {
            d: new Date(now.getFullYear(), now.getMonth() + 1, 15),
            color: 'rgb(28, 161, 227)'
        }, {
            d: '11/30',
            color: 'rgb(163, 0, 38)'
        }, {
            d: '5/23',
            color: 'rgb(163, 0, 38)'
        }, {
            d: '3/12',
            color: 'rgb(163, 0, 38)'
        }, {
            d: '14',
            color: 'rgb(204,204,0)'
        }, {
            d: 'w5',
            color: 'rgb(34, 139, 34)'
        }, {
            d: '1/1',
            color: 'rgb(250,104,0)'
        }, {
            d: '1/2',
            color: 'rgb(250,104,0)'
        }, {
            d: '6/4',
            color: 'rgb(250,104,0)'
        }, {
            d: '8/4',
            color: 'rgb(250,104,0)'
        }, {
            d: '12/25',
            color: 'rgb(250,104,0)'
        }, {
            d: '12/26',
            color: 'rgb(250,104,0)'
        }]
    });

    $('.md-marked-list').mobiscroll().listview({
        theme: '',
        lang: '',
        display: '',
        swipe: false
    });

});
<div class="md-marked">
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">Use colored dots for important events. Display event description below.</div>
    </div>
    
    <div id="demo"></div>

    <ul class="md-marked-list" style="display:none">
        <li>
            <span class="md-marked-points md-points-type1"></span> Garbage collection
        </li>
        <li>
            <span class="md-marked-points md-points-type2"></span> Special events
        </li>
        <li>
            <span class="md-marked-points md-points-type3"></span> Town council meeting
        </li>
        <li>
            <span class="md-marked-points md-points-type4"></span> Town hall closed
        </li>
        <li>
            <span class="md-marked-points md-points-type5"></span> National holidays
        </li>
    </ul>
</div>
.demo-marked {
    padding: 0!important;
}

.md-marked .md-marked-points {
    display: inline-block;
    vertical-align: middle;
    width: 7px;
    height: 7px;
    margin: 0 4px 0 0;
    border-radius: 7px;
    background: #aaa;
}

.md-marked .md-points-type1 {
    background: rgb(34, 139, 34);
}

.md-marked .md-points-type2 {
    background: rgb(163, 0, 38);
}

.md-marked .md-points-type3 {
    background: rgb(204, 204, 0);
}

.md-marked .md-points-type4 {
    background: rgb(28, 161, 227);
}

.md-marked .md-points-type5 {
    background: rgb(250, 104, 0);
}

.md-i-hide {
    display: none;
}

Calendar - Week counter

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


$(function () {

    $('#demo').mobiscroll().calendar({
        weekCounter: 'year'
    });

    $('#demo-month-nr').mobiscroll().calendar({
        weekCounter: 'month'
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Week counter</div>
        <label>
            Yearly
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Monthly
            <input id="demo-month-nr" type="text" placeholder="Please Select..." />
        </label>
    </div>
</div>

Calendar - Swipe direction

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

$(function () {

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

    $('#horizontal').mobiscroll().calendar({
        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 swipe direction</div>
        <label>
            Vertical
            <input id="vertical" placeholder="Please Select..." />
        </label>
        <label>
            Horizontal
            <input id="horizontal" type="text" placeholder="Please Select..." />
        </label>
    </div>
</div>

Calendar - RTL Support

Choose demo
$(function () {

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

});
<input id="demo" placeholder="Please Select..." />

Calendar - Event handlers

Choose demo
$(function () {

    $('#demo').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        controls: ['calendar', 'time'],
        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: 

Calendar - Setting values

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

$(function () {

    $('#demo').mobiscroll().calendar();

    $('#default').mobiscroll().calendar({
        defaultValue: new Date(2018, 2, 2)
    });

    $('#inline').mobiscroll().calendar({
        display: 'inline'
    });

    $('#now').mobiscroll().calendar({
        buttons: ['now', 'set', 'cancel']
    });

    $('#custom').mobiscroll().calendar({
        buttons: [{
                text: 'Custom',
                handler: function (event, inst) {
                    inst.setVal(new Date(2018, 0, 1), true, true, false, 1000);
                }
            },
            'set',
            'cancel'
        ]
    });

$('#auto').mobiscroll().calendar({
        buttons: ['cancel']
    });

});


$('#today').off().click(function () {
    $('#inline').mobiscroll('setVal', new Date(), true, true, false, 1000);
    return false;
});

$('#jan').off().click(function () {
    $('#inline').mobiscroll('setVal', new Date(2018, 0, 2), true, true, false, 1000);
    return false;
});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Controlling the default value</div>
        <label>
            Default
            <input id="demo" placeholder="Please Select..." />
        </label>
        <label>
            Custom default
            <input id="default" placeholder="Please Select..." />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Setting a custom value</div>
        <div class="mbsc-btn-group-block">
            <button id="jan">02-01-2018</button>
            <button id="today">Today</button>
        </div>
        <div id="inline"></div>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Buttons API</div>
        <label>
            Now
            <input id="now" placeholder="Please Select..." />
        </label>
        <label>
            Custom
            <input id="custom" placeholder="Please Select..." />
        </label>
        <label>
            Auto set
            <input id="auto" placeholder="Please Select..." />
        </label>
    </div>
</div>

Calendar - Formatting values

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

$(function () {

    var now = new Date();

    $('#calendar').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#calendar-sep').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        dateFormat: 'dd.mm.yy',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#calendar-month').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        dateFormat: 'd MM yy',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#calendar-day').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        dateFormat: 'D d M, yy',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#calendar-atom').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        dateFormat: 'yy-mm-dd',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#calendar-cookie').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        dateFormat: 'D, dd M yy',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#datetime').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        controls: ['calendar', 'time'],
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

    $('#datetime-day').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        controls: ['calendar', 'time'],
        dateFormat: 'D d M, yy',
        timeFormat: 'H:ii',
        onInit: function (event, inst) {
            inst.setVal(now, true);
        }
    });

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Date</div>
        <label>
            Default
            <input id="calendar"/>
        </label>
        <label>
            Separator
            <input id="calendar-sep" />
        </label>
        <label>
            Month name
            <input id="calendar-month" />
        </label>
        <label>
            Day of week
            <input id="calendar-day" />
        </label>
        <label>
            ATOM
            <input id="calendar-atom" />
        </label>
        <label>
            COOKIE
            <input id="calendar-cookie" />
        </label>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Date & Time</div>
        <label>
            Default
            <input id="datetime" />
        </label>
        <label>
            Day name
            <input id="datetime-day" />
        </label>
    </div>
</div>

Calendar - Display modes

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

$(function () {

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

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

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

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

    $('#demo-fullscreen').mobiscroll().calendar({
        display: 'center',
        layout: 'liquid'
    });

    $('#demo-inline').mobiscroll().calendar({
        display: 'inline'
    });

});
<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>
        <label>
            Fullscreen
            <input id="demo-fullscreen" 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 calendar component in almost any markup or form.</p>
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Embedded calendar</div>
        <div id="demo-inline"></div>
    </div>
</div>

Calendar - Booking

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

$(function () {
    var booked = [],
        invalid = ['w1'],
        now = new Date(),
        min = new Date(now.getFullYear(), now.getMonth(), now.getDate()),
        max = new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()),
        firstMonth = generateMonthEvents(now.getFullYear(), now.getMonth());

    booked = firstMonth.labels;
    invalid = invalid.concat(firstMonth.invalid);

    $('#demo').mobiscroll().calendar({
        lang: '',
        theme: '',
        display: 'inline',
        controls: ['calendar'],
        min: min,
        max: max,
        invalid: invalid,
        labels: booked,
        onMonthLoading: function (event, inst) {
            var newItems,
                isEventsLoaded = (inst.settings.labels).filter(function (v) {
                    return v.d.getMonth() == event.month + 1;
                }).length;

            if (!isEventsLoaded) {
                newItems = generateMonthEvents(event.year, event.month + 1);
                inst.settings.labels = inst.settings.labels.concat(newItems.labels);
                inst.settings.invalid = inst.settings.invalid.concat(newItems.invalid);
                inst.redraw();
            }
        }
    });

    function getRandomDay() {
        return Math.floor(Math.random() * 100) % 28 + 1;
    }

    function generateMonthEvents(year, month) {
        var isDisabled,
            tempDay,
            invalid = [],
            labels = [],
            disabledDays = [getRandomDay(), getRandomDay(), getRandomDay(), getRandomDay()];

        for (var i = 1; i <= new Date(year, month + 1, 0).getDate(); ++i) {
            tempDay = new Date(year, month, i, now.getHours(), now.getMinutes(), now.getSeconds());
            if (tempDay.getTime() >= now.getTime() && tempDay.getTime() <= max.getTime()) {
                isDisabled = disabledDays.indexOf(i) !== -1 || tempDay.getDay() == 1;
                if (isDisabled) {
                    invalid.push(tempDay);
                }
                labels.push({
                    d: tempDay,
                    text: isDisabled ? (tempDay.getDay() == 1 ? 'CLOSED' : 'FULL') : Math.round(Math.random() * 10) % 5 + 2 + ' SPOTS',
                    color: isDisabled ? '#ccc' : '#8ada8a'
                });
            }
        }

        return {
            labels: labels,
            invalid: invalid
        };
    }

});
<div style="display:none" mbsc-form>
    <div class="mbsc-align-center">
        <div class="mbsc-note mbsc-note-primary">You can set min/max to restrict selection, disable dates and add labels.</div>
    </div>
    <input id="demo" type="hidden" />
</div>

Calendar - Date & Time selection

Choose demo
$(function () {

    $('#demo').mobiscroll().calendar({
        lang: '',
        theme: '',
        display: 'bubble',
        controls: ['calendar', 'time'],
        showScrollArrows: true
    });

});
<input id="demo" placeholder="Please Select..." />

Calendar - Multi month view

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

$(function () {

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

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

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

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

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

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

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

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

});
<div mbsc-form>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Popover calendar</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 calendar</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>
.md-multi-month .md-desc p {
    margin: 0;
}
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 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 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 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 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 add --pro to the command.

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 18
Cards 10
Color 8
Date & Time 12
Event Calendar 15
Forms 21
Image 5
Listview 19
Measurement 9
Navigation 7
Number 6
Numpad 12
Option List 4
Range 15
Scroller 5
Scrollview 4
Select 11
Styling 4
Timer 4
Timespan 5
Treelist 5
Widget 8
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