CoreUI Angular Logo
Framework:
  • JavaScript / Vanilla JS
  • React.js
  • Vue.js
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewDate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DasardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page
    CoreUI PRO for AngularThis component is part of CoreUI PRO – a powerful UI library with over 250 components and 25+ templates, designed to help you build modern, responsive apps faster. Fully compatible with Angular, Bootstrap, React.js, and Vue.js.Get CoreUI PRO

    Angular Date Range Picker Component

    Create consistent cross-browser and cross-device Angular date range picker.

    Examples

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...
    Loading...

    With footer

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Jun 18, 2025 -> Jun 20, 2025
    Loading...
    Loading...

    Sizing

    Set heights using size property like size="lg" and size="sm".

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...

    Disabled

    Add the disabled boolean attribute on an input to give it a grayed out appearance and remove pointer events.

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...

    Readonly

    Add the inputReadOnly boolean attribute to prevent modification of the input value.

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...

    Disabled dates

    28
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Loading...
    Loading...

    Custom ranges

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...
    Loading...

    Non-english locale

    Auto

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...

    Chinese

    26日
    27日
    28日
    29日
    30日
    31日
    1日
    2日
    3日
    4日
    5日
    6日
    7日
    8日
    9日
    10日
    11日
    12日
    13日
    14日
    15日
    16日
    17日
    18日
    19日
    20日
    21日
    22日
    23日
    24日
    25日
    26日
    27日
    28日
    29日
    30日
    1日
    2日
    3日
    4日
    5日
    6日
    Loading...

    Japanese

    26日
    27日
    28日
    29日
    30日
    31日
    1日
    2日
    3日
    4日
    5日
    6日
    7日
    8日
    9日
    10日
    11日
    12日
    13日
    14日
    15日
    16日
    17日
    18日
    19日
    20日
    21日
    22日
    23日
    24日
    25日
    26日
    27日
    28日
    29日
    30日
    1日
    2日
    3日
    4日
    5日
    6日
    Loading...

    Korean

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...
    Loading...

    Right to left support

    RTL support is built-in and can be explicitly controlled through the $enable-rtl variables in scss.

    Hebrew

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6
    Loading...

    Persian

    ۵
    ۶
    ۷
    ۸
    ۹
    ۱۰
    ۱۱
    ۱۲
    ۱۳
    ۱۴
    ۱۵
    ۱۶
    ۱۷
    ۱۸
    ۱۹
    ۲۰
    ۲۱
    ۲۲
    ۲۳
    ۲۴
    ۲۵
    ۲۶
    ۲۷
    ۲۸
    ۲۹
    ۳۰
    ۳۱
    ۱
    ۲
    ۳
    ۴
    ۵
    ۶
    ۷
    ۸
    ۹
    ۱۰
    ۱۱
    ۱۲
    ۱۳
    ۱۴
    ۱۵
    Loading...

    Forms

    Angular handles user input through reactive and template-driven forms. CoreUI Date Range Picker supports both possibilities.

    Reactive

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6

    Form value: { "dateRangePicker": { "startDate": "2025-06-16T22:00:00.000Z", "endDate": "2025-06-22T22:00:00.000Z" } }
    dateRangePicker value: 6/17/2025 -> 6/23/2025
    Loading...
    Loading...

    Template-driven

    26
    27
    28
    29
    30
    31
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    1
    2
    3
    4
    5
    6

    dateRangePicker value: { "startDate": "2025-06-10T22:00:00.000Z", "endDate": "2025-06-16T22:00:00.000Z" }
    startDate: Wednesday, June 11, 2025 -> endDate: Tuesday, June 17, 2025
    Loading...
    Loading...

    API reference

    DateRangePicker Module

    import { 
     DateRangePickerModule,
     DropdownModule,
     SharedModule
    } from '@coreui/angular';
    
    @NgModule({
       imports: [
         DateRangePickerModule,
         DropdownModule,
         SharedModule
       ]
    })
    export class AppModule() { }
    

    c-date-range-picker

    component

    Inputs
    namedescriptiontypedefault
    startDateInitial selected start date.Dateundefined
    endDateInitial selected start date.Dateundefined
    calendarDateDefault date month of the component.Dateundefined
    cleanerToggle visibility or set the content of the cleaner button.booleantrue
    closeOnSelectDetermine if dropdown should be closed when component value is set.booleanfalse
    disabledToggle the disabled state for the component.booleanfalse
    disabledDatesList of dates that cannot be selected.(Date | Date[])[]undefined
    firstDayOfWeekSets the day of start week.number1
    format
    Formats a date display. See: DatePipe format options. Makes the input read-only.stringundefined
    indicatorToggle visibility or set the content of the input indicator.booleantrue
    inputReadOnlyToggle the readonly state for the input.booleanfalse
    localeSets the default locale for components. If not set, it is inherited from the browser.stringdefault
    maxDateMax selectable date.Dateundefined
    minDateMin selectable date.Dateundefined
    navYearFirstReorder year-month navigation, and render year first.booleanfalse
    navigationShow arrows navigation.booleantrue
    placeholderSpecifies hint visible in date input.string[]Start date, End Date
    sizeSize the component input small or large.sm | lgundefined
    dayFormatSet the format of day number.numeric | 2-digit | (date: Date) => string | numbernumeric
    weekdayFormatSet length or format of day name.number | long | narrow | short2
    rangesPredefined date ranges the user can select from.objectundefined
    rangesButtonsColorSets the color context of the cancel button to one of CoreUI themed colors.Colorssecondary
    rangesButtonsSizeSize the ranges button small or large.sm | lgundefined
    rangesButtonsVariantSet the ranges button variant to an outlined button or a ghost button.outline | ghostghost
    selectAdjacentDays
    Days in adjacent months shown before or after the current month are selectable. This only applies if the showAdjacentDays option is set to true.booleanfalse
    showAdjacentDays
    Display dates in adjacent months (non-selectable) at the start/end of the current month.booleantrue
    validSet input validation visual feedback.booleanundefined
    showWeekNumberDisplay ISO week numbers in month view.booleanundefined
    weekNumbersLabelLabel displayed over week numbers in the calendar.stringundefined
    inputDateFormatCustom function to format the selected date into a string according to a custom format.(date: Date) => stringundefined
    inputDateParseCustom function to parse the input value into a valid Date object.`(date: stringDate) => Date`
    Outputs
    namedescriptiontype
    startDateChangeEvent emitted on startDate changeDate
    endDateChangeEvent emitted on startDate changeDate
    calendarCellHoverEvent emitted on calendar cell hoverDate
    calendarDateChangeEvent emitted on calendar month changeDate
    valueChangeEvent emitted on value change{startDate: Date, endDate: Date}
    • Twitter
    • Support
    • CoreUI (Vanilla)
    • CoreUI for React.js
    • CoreUI for Vue.js

    CoreUI for Angular is Open Source UI Components Library for Angular.

    Currently v5.5.2 Code licensed MIT , docs CC BY 3.0 .
    CoreUI PRO requires a commercial license.