-
Notifications
You must be signed in to change notification settings - Fork 27.1k
DatePipe define global default pattern #11376
Copy link
Copy link
Closed
Labels
area: commonIssues related to APIs in the @angular/common packageIssues related to APIs in the @angular/common packagearea: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Metadata
Metadata
Assignees
Labels
area: commonIssues related to APIs in the @angular/common packageIssues related to APIs in the @angular/common packagearea: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
I'm submitting a ... (check one with "x")
Currently the default pattern is
mediumDatebut in a other language like german the default pattern should beddMMyyCurrent behavior
Overwrite pattern on every pipe:
Expected/desired behavior
There should be a variable like
LOCAL_IDshich can be overwritten:So we can use:
What is the motivation / use case for changing the behavior?
In some languages like german we want dates like '2016-02-01' written '01.02.2016' so, it would be much better to define a default pattern per "language" instead of set the pattern on every pipe.
Please tell us about your environment: