Date & Time Range Picker

Set up the range picker for date & time pair selection. Regardless if you are interested in the start/end date or the actual range, you have several possibilities of rendering a date and time range picker. The controls option supports different values:

  • datetime - will render a compact date scroller or dropdown with time picker for date & time range selection
  • calendar - will render a calendar view for date range selection (explore date ranges)
  • date - will render a date scroller or dropdown for date range selection (explore date ranges)
  • time - will render a time picker for range selection (explore time ranges)
  • timegrid - will render a time grid for range selection (explore time range selection)
Get started with this example

Demo

Range with a calendar and time picker

One of the most common ways to represent date range selection is through a calendar with or without a time picker. Learn how to build a date-only picker.

<mbsc-datepicker
    [controls]="['calendar', 'time']"
    select="range"
    display="inline"
    [touchUi]="">
</mbsc-datepicker>
Range with a calendar and time grid

Instead of selecting time from a list of values you can show a grid by passing 'timegrid' to the controls option.

<mbsc-datepicker
    [controls]="['calendar', 'timegrid']"
    select="range"
    display="inline"
    [touchUi]="">
</mbsc-datepicker>
Range with a scroller/dropdown

Passing datetime to the controls option renders a compact date scroller and a time scroller or dropdown with customizable start and end labels.

<mbsc-datepicker
    [controls]="['datetime']"
    select="range"
    display="inline"
    [touchUi]="">
</mbsc-datepicker>
Using the range with one input

Besides rendering it inline, you can link the range to an input that can be a Mobiscroll input or an existing field. Explore more ways to use the picker.

<mbsc-datepicker
    [controls]="['datetime']"
    select="range"
    [touchUi]="">
</mbsc-datepicker>
Using the range with two inputs

Sometimes it makes sense to use two separate inputs for start and end. You can pass a reference through the startInput and endInput options of mobiscroll or any type of input, like an ion-input.

<mbsc-datepicker
    [controls]="['datetime']"
    select="range"
    [startInput]="start"
    [endInput]="end"
                    [touchUi]="">
</mbsc-datepicker>

<mbsc-input
    #start
    placeholder="Please Select...">Start
</mbsc-input>

<mbsc-input
    #end
    placeholder="Please Select...">End
</mbsc-input>

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.