Modern jQuery calendar and date picker

Updated on Sep 24, 2020

Great alternative for the outdated jQuery calendars with advanced features and great UX

Learn More

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



The Calendar is part of Date, time & calendar. Can be picked up with the Framework and Complete licenses or as part of the component license.


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

There is a new calendar available!
Check out the beta

jQuery Calendar Calendar for jQuery and jQuery Mobile

Calendar - Mobile & Desktop usage

Change demo
Mobile & Desktop usage
Download and use example

Use the calendar view for both mobile and desktop or set it up responsively. The main difference between the two rendering modes - controlled by the touchUi setting - is how the calendar is laid out. When set to false the component shows up suitable for larger screens and pointer interaction while setting it to true renders it suitable for touch screens.

Handle different screen sizes by setting it up responsively  Check out the responsive demo →

Calendar - App & Website usage

Change demo
App & Website usage
Download and use example

Use it on any custom input or with Mobiscroll form fields. The calendar is shown on input focus, but it can also be triggered on a button click or it can be embedded directly into the page.

Let’s say you already have a form and you want to enhance date selection. You can use it on existing fields or new fields.

Calendar - Mobile display modes

Change demo
Mobile display modes
Download and use example

Different display modes can be used for mobile and desktop. On mobile, the calendar can be rendered at the top or bottom of the screen, in the center of the screen, anchored to an input or any object for that matter and it can also be embedded in any inline content.

Interested in desktop usage?  Check out the next example →

Calendar - Desktop display modes

Change demo
Desktop display modes
Download and use example

Use the available display modes on mobile and desktop. On larger screens you have slightly different rendering options suitable for the large form-factor and pointer interaction. Use the top, bottom and center modes for getting it in front of the users or stay in context and anchor it to the input.

Interested in mobile usage?  Check out the previous example →

Calendar - Responsive

Change demo

Set up the Calendar to behave responsively. Use the appriopriate positioning and rendering based on the screen size. You can have a bottom positioned calendar on mobile, a popover anchored to the input on tablet and desktop display on large sceens.

All this can be configured under the responsive setting where you pass the options for each breakpoint.

responsive: {
    xsmall: { ... }, small: { ... }, medium: { ... }, large: { ... }, xlarge: { ... }
}

Viewport

Calendar - Date picker

Change demo

Use the calendar for single and multiple day selection for both desktop and mobile. Link the calendar to any field - plain HTML or styled input - or embed it right into a page. Navigate the months with the arrows or by swiping.

When linked to an input, the calendar will automatically open on focus and click. You can turn it off and only show it on a button click.

Use it on any custom input or with Mobiscroll form fields.

See how the calendar looks with different mobile rendering modes or how it looks on desktop.

Interested in a date & time picker?  Check out the calendar with time picker →

Calendar - Date & Time picker

Change demo
Date & Time picker
Download and use example

Besides date-only functionality you can use the component as a combined date and time picker. Select the date from a calendar view and the time woth an hour and minute picker.

Show the date and time in localized formats or customize it to your needs. Take a look at some of the formatting options available.

Interested in a scroller component?  Check out the date & time scroller →

Calendar - Multiple day picker

Change demo
Multiple day picker
Download and use example

Multi-date select is useful when users need to pick from a set of dates that are not necessarily in a range. Passing select: 'multiple' or a number, like select: 5 enables multiple day selection.

The latter also sets a maximum selectable, so passing select: 5 means a maximum number of five dates can be selected.

See how the calendar looks with different mobile rendering modes or how it looks on desktop.

Interested in date range selection?  Check out the range picker →

Calendar - Week selection

Change demo

You can select entire weeks instead of single days. This is useful when users need to select a full week instead of a variable range. It can be activated with selectType: 'week'. Single or multiple weeks can be selected based on the select: 'single','multiple' or integer setting. You can also control the day the week starts with the firstDay setting.

Interested in a variable date range selection?  Check out the range picker →

Calendar - Variable week view

Change demo
Variable week view
Download and use example

The calendar view supports variable weeks. Save space by only displaying one or two weeks or go for a full month where it makes sense. Use the weeks setting that expects a number of rows. The default is six weeks, but feel free to play around.

Looking to dynamically switch views?  Check out the week to month view example →

Calendar - Week to month view

Change demo
Week to month view
Download and use example

While the calendar supports variable week views there are cases when you don't want to commit to a single setup. Get the best of both worlds by dynamically letting the users switch between a week-view and a full month-view. Use the compact week-view to save space and programatically switch to a month-view when users need the full context of a month.

Calendar - Multi month view

Change demo
Multi-month calendar. Show one, two or three months side by side depending on screen size. Fixed or dynamic months.

Calendar - Min & max values

Change demo

Use the min and max settings to restrict selection. This is useful to make picking a date faster and to reduce user errors. A great example is scheduling. You want to disable past dates and maybe enable selection from the next six months. Simply restrict values with the min and max.

Looking for cherry picking and disabling dates?  See how to set invalids →

Calendar - Appointment booking

Change demo
Appointment booking
Download and use example

Book single or multiple appointments depending on the use-case or set up recurring date and time selection. Limit the available dates with the min and max settings. Make dates un-selectable with the invalid setting.

Load additional information in labels that helps people book the appointment. This can be pricing, available spots or anything you would like. You can show it as labels, mark days or color days. It can be loaded on demand from an external API like in this example.

A great example for a recurring booking is resource allocation. Take the booking of a basketball court for two hours ever Wednesday from 8PM. The example below lets you select a day of a week and an available time (served with two hour increments) and then it colors the days in a recurring manner for visibility.

The calendar can be displayed inline with one or more months or linked to an input. Explore the mobile rendering modes or see how it looks on desktop.

Looking for flight or hotel booking?  Check out the range picker →

Calendar - Marked, colored & labels

Change demo
Marked, colored & labels
Download and use example

For additional information you can mark days with colored dots, add labels or completely color the background of the days. This offers means to add more information to the calendar that is valuable to users. Take a look at this example of marked days and description.

You can add these with exact dates, ranges, days of week, days of month and recurring dates. When processing a lot of data you can load the marked days, labels, colors dynamically in the onPageChange event.

Looking for an event calendar?  We have a component for that →

Calendar - Date types

Change demo

The calendar works with multiple data types:

  • JS date objects - new Date(1995, 11, 17, 15, 24)
  • ISO date strings - '2008-09-15T15:53:00'
  • Moment.js objects - moment([2018, 3, 27, 12, 15])

Calendar - Formatting values

Change demo
Formatting values
Download and use example

Set the date and time format accordingly. Formats are inherited from the localization settings, but can be overriden with the dateFomat, timeFormat settings.

Interested in learning about localization?  Check out the examples below →

Calendar - Disabling values

Change demo

Disable dates with the invalid setting. It supports exact dates, ranges, recurring dates and weekdays. Time can also be invalidated by passing exact values and ranges.

Using invalids is essential to a great UX. First make sure you have the min & max values right and then work your way back to invalids. If you would like to re-enable dates inside an invalid range, you can do it with the valid setting. Having it set up correctly not just enhances the UX, but improves performance.

Calendar - Marked days

Change demo

When using marked days, users might be interested to see what each dot means. You can place a listview below for describing what everything means.

Looking for more options to mark days?  See how to add dots, colors and labels →

Calendar - Showing week numbers

Change demo
Showing week numbers
Download and use example

Enable week numbers with the weekCounter setting. Counting yearly and monthly are both supported. Use it whenever it is important to users having the week number in front of them. With weekCounter: 'year' you can start the counter from the first until the last week of the year. weekCounter: 'month' restarts the counter for every month.

Calendar - Month change direction

Change demo
Month change direction
Download and use example

For a great user experience the calendar can be navigated a couple of different ways:

  • By clicking or tapping on the little arrows above the calendar body
  • With touchpad swipe gestures
  • By grabbing and dragging the month with the mouse cursor
  • With fluid swipe gestures on touchscreens

All this works in two directions: vertically and horizontally. Change the month change direction with calendarScroll: 'vertical' and calendarScroll: 'horizontal'.

Calendar - Setting values

Change demo

Values can change a couple different ways: though defaults, intracting with the UI or programatically. The calendar defaults to now, which can be easily overridden with the defaultValue setting. Values are set by interacting with the component and making a selection or it can be done programatically with the setVal method. Use the buttons setting for showing/hiding set, cancel, clear, now or add custom buttons.

Calendar - RTL Support

Change demo

Shipping with full RTL support, choose left-to-right or right-to-left with the rtl setting. The value is inherited from the localization settings and can be manually overriden by explicitly setting it true or false.

Learn more about RTL and accessibility  Browse the documentation →

Calendar - Theming capabilities

Change demo
Theming capabilities
Download and use example

The look and feel of the calendar can be deeply customized. There are four levels of customization:

  • Base themes: Choose between Mobiscroll, iOS, Android Material and Windows.
  • Light or dark: Every theme has a light and dark variant. Setting the themeVariant to 'auto' will switch based on system settings.
  • Custom themes: Use the theme builder to customize the colors and make it match your brand.
  • Custom CSS: If you need further customization, the sky is the limit with CSS overrides.

You can also see how every example looks by changing the theme from the header.

Calendar - Lifecycle events

Change demo

The calendar ships with different event hooks for deep customization. Events are triggered through the lifecycle of the component where you can tie in custom functionality and code. While users interact with the UI events like onChange, onSet, onInit ... will be triggered. Interact with the example and check the event log for the output.

For a complete list of events go to the documentation  See available lifecycle events →
Clear event log
EVENTS FIRED: 

Calendar - Calendar systems

Change demo

The calendar supports multiple calendar systems. You can control it with the calendarSystem setting, and it supports the following options:

  • Gregorian - it is included by default
  • Jalali - it is the default system of the Persian calendar and is inlcuded within the Farsi language pack
  • Hijri - it is included in the Arabic language pack
Interested in localization?  Explore this example →

Calendar - Localization

Change demo

The components are fully localized. In case of the calendar this covers date and time format, button copy, rtl and more. You can see how each example shows up by clicking on the small flag icon or checking the examples below.

All settings can be manually overriden  See what options the localization impacts →

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
Sign in or start your free trial

What framework are you using?

Javascript
jQuery
AngularJS
Angular
React
Other
Ionic Angular
Email address

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic 

You will be prompted to log in with your mobiscroll account. Set your password here

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app.

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve

And voilà, everything should be running smoothly.

Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic 

You will be prompted to log in with your mobiscroll account. Set your password here

Run this command for Ionic 5 & React Mobiscroll starter:

$ mobiscroll start ionic-react myStarter

Step 3.Copy the code into your app.

Copy TSX
Copy CSS

Step 4.Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve

And voilà, everything should be running smoothly.

Customize & try demos locally
How would you like to do it?
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Angular project

Copy command
$ mobiscroll config angular 

You will be prompted to log in with your mobiscroll account. Set your password here

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS
Copy Module

Step 4.Run ng serve in the root folder of your app 🎉

Copy command
$ ng serve

And voilà, everything should be running smoothly.

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
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.

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Please extract the zip file and run the project like any Angular CLI app. Make sure to have the Angular CLI installed.

For installation and usage, extract the zip file and open a terminal window and follow these steps.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ng serve --open

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.
Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
Alerts & notifications
Alert Notifications Note
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Windows
Windows Dark
Language Locale
See other demos and change options
Theme
Locale
See other demos