-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: MD_DATE_FORMATS is not exported - cannot customize date time formats #4534
Comments
* Makes the MD_DATE_FORMATS and MD_NATIVE_DATE_FORMATS public. * Fixes some trailing whitespace in the datepicker readme. Fixes angular#4534.
Could someone help me how can I customize date format with md-datepicker? I'm using:
And the date format that is sent to the backend is: 2017-06-14T21:00:00.000Z |
same problem here! :( |
Having the same problem in beta.6. At a loss for why I'm getting the following ERROR in [at-loader] ./origin/app/monitor/xxxxxx.module.ts:94:20 even though i've imported in module.ts import { MaterialModule, MdNativeDateModule, DateAdapter, MdDatepickerModule } from "@angular/material"; defined MY_DATE_FORMATS: const MY_DATE_FORMATS = { @NgModule({ |
@spd-e-gonzales I think that you need to import MD_DATE_FORMATS explicitely, so: |
Kinda stuck with similar issue. Can someone post a working solution? |
Hi @crisbeto , i am trying to import 'MY_NATIVE_DATE_FORMATS' from "@angular/material" and it throws error as "it has no exported member 'MY_NATIVE_DATE_FORMATS'. |
@Bhawna14 'MY_NATIVE_DATE_FORMATS' is class that you create is not imported from "@angular/material" .... what you import from material is MD_DATE_FORMATS
|
Its now |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Bug
What is the expected behavior?
Customizing the parse and display formats by example:
What is the current behavior?
MD_DATE_FORMATS const is not exported by datetime/index.ts, so it is not available in @angular/material
The text was updated successfully, but these errors were encountered: