Skip to content

bug: MD_DATE_FORMATS is not exported - cannot customize date time formats #4534

@davidgabrichidze

Description

@davidgabrichidze

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Customizing the parse and display formats by example:

@NgModule({
  imports: [MdDatepickerModule],
  providers: [
    {provide: DateAdapter, useClass: NativeDateAdapter},
    {provide: MD_DATE_FORMATS, useValue: MY_NATIVE_DATE_FORMATS},
  ],
})
export class MyApp {}

What is the current behavior?

MD_DATE_FORMATS const is not exported by datetime/index.ts, so it is not available in @angular/material

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions