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
$(function () {
    var now = new Date(),
        max = new Date(now.getFullYear() + 100, now.getMonth(), now.getDate());

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

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

Calendar - Multiple day selection

Choose demo
$(function () {

    var now = new Date(),
        year = now.getFullYear(),
        month = now.getMonth();

    $('#demo').mobiscroll().calendar({
        theme: '',
        lang: '',
        display: '',
        counter: true,
        select: 'multiple',
        defaultValue: [new Date(year, month, 1), new Date(year, month, 2), new Date(year, month, 10)]
    });

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

Calendar - Week selection

Choose demo
$(function () {

    var now = new Date(),
        year = now.getFullYear(),
        month = now.getMonth(),
        date = now.getDate(),
        day = now.getDay(),
        diff = day === 0 ? day : day - 1,
        currWeekDays = [],
        i = 0;

    for (i; i < 7; i++) {
        currWeekDays.push(new Date(year, month, date - diff + i));
    }

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

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

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 - Invalid days

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.events;
    invalid = invalid.concat(firstMonth.invalid);

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

            if (!isEventsLoaded) {
                newItems = generateMonthEvents(event.year, event.month + 1);
                inst.settings.events = inst.settings.events.concat(newItems.events);
                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 = [],
            events = [],
            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);
                }
                events.push({
                    d: tempDay,
                    text: isDisabled ? (tempDay.getDay() == 1 ? 'CLOSED' : 'FULL') : Math.round(Math.random() * 10) % 5 + 2 + ' SPOTS',
                    color: isDisabled ? '#ccc' : '#8ada8a'
                });
            }
        }

        return {
            events: events,
            invalid: invalid
        };
    }

});
<div style="display:none" mbsc-form>
<input id="demo" type="hidden" />
</div>

Calendar - Min & Max date

Choose demo
$(function () {
    var now = new Date(),
        min = new Date(now.setDate(now.getDate() + 1)),
        max = new Date(now.getFullYear(), now.getMonth() + 6, now.getDate());

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

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

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 = {
    theme: '',
    lang: '',
    display: ''
};

$(function () {

    $('#demo').mobiscroll().calendar({
        calendarScroll: 'vertical'
    });

    $('#demo-horizontal').mobiscroll().calendar({
        calendarScroll: 'horizontal'
    });

});
<div style="display:none" mbsc-form>
    <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 - 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 - 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 (update 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

Copy the demo to your app.
If Mobiscroll is already installed in your Ionic app grab and paste the code below. The HTML goes into markup and the Typescript into the TS file. If you need to install mobiscroll use the CLI.

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
Scrollview
Paging Cards
Controls
Calendar 14
Cards 9
Color 8
Date & Time 12
Event Calendar 6
Forms 24
Image 5
Listview 18
Measurement 14
Navigation 6
Number 6
Numpad 12
Option List 4
Range 14
Scroller 5
Scrollview 2
Select 13
Styling 3
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