angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.32k stars 6.73k forks source link

Please add a date range picker with custom ranges support #27576

Closed sampatkumar-mca17 closed 4 months ago

sampatkumar-mca17 commented 1 year ago

Which @angular/* package(s) are relevant/related to the feature request?

Angular/material

Description

We have a requirement of date range picker for our project, but angular material only has date picker, it's on us to either do the workaround on that or to choose a 3rd party libraries (paid) , it'd really great to have a mat date range picker with support for adding custom ranges like today, yesterday, last 3months, last 6 months, etc

Proposed solution

Please add daterangepicker component in angular material

Alternatives considered

Paid 3rd party libraries or finding a workaround on existing darepicker component which is at max going to be kind of hack and wouldn't provide permanent solution

crisbeto commented 1 year ago

We do have a date range picker. See https://material.angular.io/components/datepicker/overview#date-range-selection

sampatkumar-mca17 commented 1 year ago

Oh, sorry I just noticed, is it possible to add options to have custom ranges and allow labelling to these custom ranges?

crisbeto commented 1 year ago

I'm not sure exactly what a custom range means in this case, but we support the ability to customize how the date range selection behaves: https://material.angular.io/components/datepicker/overview#customizing-the-date-selection-logic

crisbeto commented 4 months ago

Closing since there hasn't been any follow-up in a while.

angular-automatic-lock-bot[bot] commented 3 months ago

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.