Modern jQuery date & time picker

Updated on May 17, 2021

Mobile scroller and desktop dropdown for jQuery with advanced features and great UX

Learn More

Date & time scroller component for date, time selection or a combination of both.

Compatible with mobiscroll forms, custom inputs and more. Use it on any touch screen, no matter if small or large.

Shipping with useful features for a refined UX, including:

  • Usage on mobile and tablet
  • Date-only, time-only or mixed modes
  • Steps for display values
  • Hide wheels that are not needed
  • Validation with disabled dates, min & max for restricting selection
  • Circular wheels
  • Multiple theme support
  • Modal, popup and inline display mores
  • RTL Support
  • Full localization



As part of Date, time & calendar it can be picked up with the Framework and Complete licenses or with the component license.


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

Calendar Range Timespan


Date & Time demos available for other frameworks.

Viewing demos & code for

jQuery Date & Time Date & Time for jQuery and jQuery Mobile

Date & Time - Mobile & Desktop usage

Change demo
Mobile & Desktop usage
Download and try example

Use it for mobile, desktop and everything in between by setting it up responsively (view responsive demo). The component can be rendered for touch UI - great for smartphones and tablets - and for non-touch UI screens like laptop and desktops. The main difference is that they are optimized for either touch or pointer interaction.

Copy code

Date & Time - App & Website usage

Change demo
App & Website usage
Download and try example

Use it on any custom input or with Mobiscroll form fields. The component is triggered on input focus, but is can also be triggered on a button click.

Let’s say you already have a form and you want to enhance the date picking experience. No problem, the date & time can be used on your existing fields. Most of our examples are presented using Mobiscroll form fields, but you get the picture.

Copy code

Date & Time - Mobile display modes

Change demo
Mobile display modes
Download and try example

Depending on your requirements you can use different display modes for both mobile and desktop. On mobile the component can be rendered either 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 →
Copy code

Date & Time - Desktop display modes

Change demo
Desktop display modes
Download and try 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 →
Copy code

Date & Time - Responsive behavior

Change demo
Responsive behavior
Download and try example

Configure the date & time to behave and render differently on different sized screens. You can have a bottom positioned date scroller on mobile, a popover anchored to the input on tablet and desktop display on large screens.

All this can be configured under the responsive setting. Think of it as configuring how the settings change based on the screen-size.

Viewport
Copy code

Date & Time - Date selection

Change demo

Use the component for date selection and only show the day, month and year wheels. Use the dateFormat and dateWheels settings to customize the experience. Check out some great examples for custom formats and for hiding the day resulting in a month/year picker.

Use the same component but different configuration for time and date-time selection.

Copy code

Once we started using Mobiscroll, our conversions have improved and the experience became much more delightful!

Daniel Maldonado, Sr. Web Designer, Ecommission Financial Services

Date & Time - Time selection

Change demo

Use the component for time selection with wheels for hours, minutes and seconds. Control the format - timeFormat and wheels - timeWheels and switch between AM/PM or 24h formats. Check out some great examples for custom formats.

Use the same component but different configuration for date and date-time selection.

Copy code

Date & Time - Date & time selection

Change demo
Date & time selection
Download and try example

Use the component for a combined date & time picker. Select a day, month, year along with hour and minutes on separate wheels or have the date on a single wheel and the time on separate wheels.

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

Besides the combined view you can use it as a >date-only and time-only picker.

Copy code

Date & Time - Min & max values

Change demo

Use the min and max settings to restrict selection. This is useful to make the selection faster and to reduce user errors. A great example is date of birth. You want to disable future dates and maybe add age verification? Simply restrict values up to 18 years in the past.

Looking for a more sophisticated way for disabling dates?  See how to disable dates and times →
Copy code

Date & Time - Setting time select steps

Change demo
Setting time select steps
Download and try example

Adjust the minute, hour steps in the time picker. By default it is incrementing by one, however you can change it to anything you’d like. Need to pick values from every five minutes? You can do it with the steps setting.

Copy code

Date & Time - Date types

Change demo

The date & time picker supports multiple data types. You can work with JS date objects - new Date(1995, 11, 17, 15, 24), ISO date strings - '2008-09-15T15:53:00' and moment.js objects - moment([2018, 3, 27, 12, 15]).

Copy code

Date & Time - Formatting values

Change demo
Formatting values
Download and try example

Set the date and time format accordingly. Formats are inherited from the localization settings, but can be overridden with the dateFormat, timeFormat settings. The scrollable wheels are controlled by the dateWheels and timeWheels settings.

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

Date & Time - Credit card expiration

Change demo
Credit card expiration
Download and try example

Customize the wheels and format the date picker for month & year. Choose a month/year format for the credit card expiration date.

This and even more can be done with the dateWheels setting.

Interested in changing the date format?  Explore formatting options →
Copy code

Date & Time - Setting values

Change demo

Values can change in a couple of different ways: through defaults, interacting with the UI or programmatically. The date and time picker defaults to now, which can be easily overridden with the defaultValue setting. The values are set by interacting with the component and making a selection or it can be done programmatically with the setVal method. Use the buttons setting for showing/hiding set, cancel, clear, now or add custom buttons.

Copy code

Date & Time - Disabled 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.

Copy code

Date & Time - Theming capabilities

Change demo
Theming capabilities
Download and try example

Customize the look and feel with themes or custom CSS. 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.

Copy code

Date & Time - 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 overridden by explicitly turning it ON and OFF.

Learn more about RTL and accessibility  Browse the documentation →
Copy code

Date & Time - Lifecycle events

Change demo

The date & time 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: 
Copy code

Date & Time - Calendar systems

Change demo

The date picker 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 included within the Farsi language pack
  • Hijri - it is included in the Arabic language pack
Interested in localization?  Explore this example →
Copy code

Date & Time - Localization

Change demo

All components are fully localized. In case of the date picker 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 overridden  See what options the localization impacts →
Copy code

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

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 --version=4

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 --version=4

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 react-ionic 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 --version=4

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!

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! 👍

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

Need to update your password?
Demos
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