-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
Feature Request: Date pipe - Support narrow form for weekdays in #12294
Labels
area: common
Issues related to APIs in the @angular/common package
feature
Issue that requests a new feature
freq2: medium
Comments
Yep, missed this one. Since it supported by Intl.API it should not be really hard to change |
pkozlowski-opensource
added
feature
Issue that requests a new feature
area: common
Issues related to APIs in the @angular/common package
freq2: medium
labels
Oct 14, 2016
laskoviymishka
added a commit
to laskoviymishka/angular
that referenced
this issue
Oct 14, 2016
laskoviymishka
added a commit
to laskoviymishka/angular
that referenced
this issue
Oct 14, 2016
laskoviymishka
added a commit
to laskoviymishka/angular
that referenced
this issue
Oct 14, 2016
3 tasks
laskoviymishka
added a commit
to laskoviymishka/angular
that referenced
this issue
Oct 14, 2016
laskoviymishka
added a commit
to laskoviymishka/angular
that referenced
this issue
Oct 14, 2016
laskoviymishka
added a commit
to laskoviymishka/angular
that referenced
this issue
Oct 14, 2016
alxhub
pushed a commit
that referenced
this issue
Oct 19, 2016
btrigueiro
pushed a commit
to btrigueiro/angular
that referenced
this issue
Oct 21, 2016
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: common
Issues related to APIs in the @angular/common package
feature
Issue that requests a new feature
freq2: medium
I'm submitting a ... (check one with "x")
Current behavior
With the current implementation of the date pipe, It's not possible to render weekdays in narrow form (M, T, W, T, F, S, S).
Expected behavior
It would be useful to be able to render weekdays in narrow form.
What is the motivation / use case for changing the behavior?
Date pickers often use the narrow format to display the days of the week. At the moment if you want to achieve this, you need to create an Intl.DateTimeFormatter in your component, and pass the weekdays as a string. It'd be more ideal to use actual dates and the date pipe in the template. Since it's supported by the JS INTL API, I imagine that it should be a trivial change. As for the format string, I feel that 'EE' should be appropriate here.
Please tell us about your environment:
macOS Sierra, NPM 3.10.3
node --version
= v6.3.0The text was updated successfully, but these errors were encountered: