feat(DateAdapter): Add a method for getting the ISO week number
See original GitHub issueFeature Description
This method should return the ISO week number. It has locale independent calculation algorithm and so could be implemented in the base class. And maybe it will be a start point for adding the local week number getter.
Use Case
DateAdapter
or based on it custom adapters can be used not only in Material Components but also inside custom components or even in some enterprise apps to abstract from concrete datetime library. I understand it even as a kinda calendar adapter. And if so there could be a method for getting the week number. I know that its kinda tricky operation because of different locales but there is an algorithm for getting the week number in ISO way. So what do you think about adding it to DateAdapter
? Personally I can make the PR.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Is there a way to display week numbers aside the weeks in ...
I would like to know whether we have a solution to display week numbers along with date in mat-datepicker please give answers specific...
Read more >Seam Reference Guide JBoss Enterprise Application Platform 5
Seam provides a number of example applications which demonstrate how to use a variety of Seam's features. This tutorial will guide you through...
Read more >Datepicker - Angular Material
The second way to add date validation is using the matDatepickerFilter property of the datepicker input. This property accepts a function of <D>...
Read more >Date Picker Week Numbers - DayPilot Documentation
There are two methods for calculating the week number: ISO 8601 (Monday is the first day of week; the week that includes the...
Read more >@angular/material: Versions | Openbase
autocomplete: add clear method to test harness (#24752) ... e8dd070bbd, feat(material-date-fns-adapter): add date adapter for date-fns (#23262) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll close this as a duplicate of https://github.com/angular/components/issues/20530 since we’ll have to add a similar method when adding support for week numbers.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.