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

});
<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">
    <input id="demo-non-form" class="demo-non-form" placeholder="Please Select..." />
</div>
.demo-non-form {
    width: 100%;
    margin: 0 0 5px 0;
    padding: 10px;
    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;
}

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-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-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-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 id="demo" placeholder="Please Select..."></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 () {

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

    $('#demo-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="demo" placeholder="Please Select..." />
        </label>
        <label>
            Horizontal
            <input id="demo-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
        },
        onMonthChange: function (event, inst) {
            // Your custom event handler goes here
        },
        onMonthLoaded: function (event, inst) {
            // Your custom event handler goes here
        },
        onMonthLoading: 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 - Formatting values

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

$(function () {

    var now = new Date();

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

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

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

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

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

    $('#date-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="date"/>
        </label>
        <label>
            Separator
            <input id="date-sep" />
        </label>
        <label>
            Month name
            <input id="date-month" />
        </label>
        <label>
            Day of week
            <input id="date-day" />
        </label>
        <label>
            ATOM
            <input id="date-atom" />
        </label>
        <label>
            COOKIE
            <input id="date-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 scroller</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 = {
    theme: ''
};

$(function () {

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

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

});
<div style="display:none" mbsc-form>
    <div class="mbsc-form-group mbsc-padding mbsc-thin">
        Show up to three months depending on screen real estate. Automatically show one or two on smaller screens.
    </div>
    <div class="mbsc-form-group">
        <div class="mbsc-form-group-title">Multiple month view</div>
        <label>
            Popup
            <input id="demo-bubble" placeholder="Please Select..." />
        </label>
        <label>
            Center
            <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.

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

What is your main focus at the moment?

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

Install demo in your app
Follow steps to install mobiscroll and use example

Install Mobiscroll for Ionic

Step 1.

Install the Mobiscroll CLI from npm (you might need sudo access).

Copy command
$ npm install -g @mobiscroll/cli

Step 2.

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

Copy command
$ mobiscroll config ionic
If your app is using lazy loading, run $ mobiscroll config ionic --lazy instead.

If Mobiscroll is installed in your app, copy the demo code from below.
The HTML goes into markup, the Typescript into the TS file and the CSS into the page stylesheet (scss file). If you need to install mobiscroll use the CLI and follow these two simple steps.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app.

Copy command
$ ionic serve
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
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 17
Cards 9
Color 8
Date & Time 12
Event Calendar 7
Forms 23
Image 5
Listview 18
Measurement 14
Navigation 6
Number 6
Numpad 12
Option List 4
Range 14
Scroller 5
Scrollview 4
Select 11
Styling 4
Timer 4
Timespan 5
Treelist 5
Widget 8
Demo Apps 5
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