question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(DateAdapter): Add a method for getting the ISO week number

See original GitHub issue

Feature 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
crisbetocommented, Aug 25, 2021

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.

0reactions
angular-automatic-lock-bot[bot]commented, Oct 1, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found