Movatterモバイル変換


[0]ホーム

URL:


CoreUI Angular Logo
Framework:
Getting startedIntroductionSupport CoreUICustomizeSassOptionsCSS VariablesLayoutBreakpointsContainersGridColumnsGuttersFormsOverviewAutocompletePRODate PickerPRODate Range PickerPROForm ControlSelectMulti SelectPROChecks & RadiosPassword InputPRORangeRange SliderPRORatingPROStepperPROInput GroupFloating LabelsLayoutTime PickerPROValidationComponentsAccordionAlertAvatarBadgeBreadcrumbButtonButton GroupCalendarPROCalloutCardCarouselClose buttonCollapseDropdownFooterHeaderImageList GroupLoading ButtonPROModalNavNavbarOffcanvasPaginationPlaceholderPopoverProgressSmart PaginationPROSmart TablePROSidebarSpinnerTableTabsNewToastTooltipWidgetsIconsChartsTemplatesNewAdmin & DashboardDownloadInstallationCustomizeContentMigrationv4 → v5v3 → v4Angular version


DownloadHire UsGet CoreUI PRO
On this page
CoreUI PRO for Angular This 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 Picker Component

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

Examples

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Mon
Tue
Wed
Thu
Fri
Sat
Sun
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
Loading...
import { Component } from '@angular/core';import { ColComponent, DatePickerComponent, RowComponent } from '@coreui/angular';@Component({  selector: 'docs-date-picker01',  templateUrl: './date-picker01.component.html',  standalone: true,  imports: [RowComponent, ColComponent, DatePickerComponent]})export class DatePicker01Component {  public date = new Date();}

With footer

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Oct 3, 2025
Loading...
import { Component } from '@angular/core';import { DatePipe } from '@angular/common';import {  ButtonDirective,  ColComponent,  DatePickerComponent,  DropdownCloseDirective,  RowComponent,  TemplateIdDirective} from '@coreui/angular';@Component({  selector: 'docs-date-picker02',  templateUrl: './date-picker02.component.html',  standalone: true,  imports: [    RowComponent,    ColComponent,    DatePickerComponent,    TemplateIdDirective,    ButtonDirective,    DropdownCloseDirective,    DatePipe  ]})export class DatePicker02Component {  public date?: Date | null = new Date();  public calendarDate = new Date(Date.now());  onToday() {    this.calendarDate = new Date(Date.now());  }  onCancel() {    this.date = null;  }}

Sizing

Set heights usingsize property likesize="lg" andsize="sm".

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Loading...

Disabled

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

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Loading...

Readonly

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

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Loading...

Format

Control the format of the date displayed in the input using theformat property according tolocale rules.Makes the date input read-only.

lun
mar
mié
jue
vie
sáb
dom
29
30
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
Loading...
import { ChangeDetectionStrategy, Component } from '@angular/core';import { registerLocaleData } from '@angular/common';import localeEs from '@angular/common/locales/es';import { ColComponent, DatePickerComponent, RowComponent } from '@coreui/angular';registerLocaleData(localeEs);     // es-ES@Component({  selector: 'docs-date-picker15',  templateUrl: './date-picker15.component.html',  changeDetection: ChangeDetectionStrategy.OnPush,  standalone: true,  imports: [RowComponent, ColComponent, DatePickerComponent]})export class DatePicker15Component {}

Disabled dates

Add dates user cannot select using thedisabledDates property.

Mo
Di
Mi
Do
Fr
Sa
So
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...

Non-english locale

Auto

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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
Loading...

Chinese

周一
周二
周三
周四
周五
周六
周日
29日
30日
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日
Loading...

Japanese

29日
30日
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日
Loading...

Korean

29일
30일
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일
Loading...

Right to left support

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

Hebrew

ב׳
ג׳
ד׳
ה׳
ו׳
ש׳
א׳
29
30
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
Loading...

Persian

د
س
چ
پ
ج
ش
ی
۷
۸
۹
۱۰
۱۱
۱۲
۱۳
۱۴
۱۵
۱۶
۱۷
۱۸
۱۹
۲۰
۲۱
۲۲
۲۳
۲۴
۲۵
۲۶
۲۷
۲۸
۲۹
۳۰
۱
۲
۳
۴
۵
۶
۷
۸
۹
۱۰
۱۱
۱۲
۱۳
۱۴
۱۵
۱۶
۱۷
۱۸
Loading...

Forms

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

Reactive

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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

Form value: { "datePicker": "2025-10-02T22:00:00.000Z"}
datePicker value: 10/3/2025
Loading...
Loading...

Template-driven

Mon
Tue
Wed
Thu
Fri
Sat
Sun
29
30
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

Form value: { "datePicker": "2025-10-03T22:00:00.000Z"}
datePicker value: Saturday, October 4, 2025
Loading...
Loading...

API reference

DatePicker Module

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

c-date-picker

component

Inputs
namedescriptiontypedefault
dateInitial selected 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
4.5.26+
Formats a date display. See:DatePipe format options. Makes the input read-only.stringundefined
disabledToggle the disabled state for the component.booleanfalse
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.stringSelect 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
selectAdjacentDays
4.5.5+
Days in adjacent months shown before or after the current month are selectable. This only applies if theshowAdjacentDays option is set totrue.booleanfalse
showAdjacentDays
4.5.5+
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
dateChangeEvent emitted ondate changeDate
calendarCellHoverEvent emitted on calendar cell hoverDate
calendarDateChangeEvent emitted on calendar month changeDate
valueChangeEvent emitted onvalue changeDate

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

Currently v5.5.17 Code licensed MIT, docs CC BY 3.0 .
CoreUI PRO requires acommercial license.


[8]ページ先頭

©2009-2025 Movatter.jp