components icon indicating copy to clipboard operation
components copied to clipboard

feat(DatePicker): select range of dates

Open alaawerfelli opened this issue 9 years ago • 148 comments

Hello, it's possible to set date range in date picker (have the ability to choose startDate and endDate and get all dates between startDate and endDate).

alaawerfelli avatar May 24 '17 08:05 alaawerfelli

I'm also using saturn-datepicker, it's based on a clone of material datepicker. Till now I don't really have any issue with it.

hanyu-natsu avatar Dec 14 '18 12:12 hanyu-natsu

Any update on inclusion of date range in core Angular Material?

l3ender avatar Dec 21 '18 18:12 l3ender

https://github.com/angular/material2/tree/date-range

Well, this is the update. I really hope it's coming soon. @mmalerba Is it ready enough for you to slap a release version on this issue?

ghost avatar Jan 01 '19 08:01 ghost

Any update? @doom777 @mmalerba

l3ender avatar Jan 23 '19 18:01 l3ender

I don't work here, but the branch shows active development.

ghost avatar Jan 29 '19 18:01 ghost

We're hoping to have a refactor in for 8.0 that switches the mat-datepicker and related components to use a selection model under the hood. This would allow us to add the date range picker in a later minor release

mmalerba avatar Jan 29 '19 18:01 mmalerba

Is there any update ?

mjdiaz25 avatar Mar 18 '19 18:03 mjdiaz25

any update regarding date range picker?

imransilvake avatar Apr 11 '19 09:04 imransilvake

the angular materials team is working together with the angular core team to launch the ivy compiler, do not expect any new feature until the ivy be released

Rodrigo54 avatar Apr 11 '19 12:04 Rodrigo54

any update on this feature?

jamesworkdesk avatar Apr 24 '19 20:04 jamesworkdesk

Just wanted to give a quick update on this:

First, I want to give a huge thank you to @MathiasPaumgarten who has been working on this part-time for quite a while. This is a huge undertaking and Mathias has been doing some awesome work.

So the current state is that it's still in progress, but its slow going. This feature depends on a huge refactor of one of our most complex components. It's taking some time to make sure we get it right and don't break existing users.

The plan is to switch from having all of the sub-components manage their selected state through intercommunication with each other, to coordinating it all through a selection model object. Different selection models will support either single date selection or range date selection. The selection model refactor is close to being ready, the code can be found here: https://github.com/angular/components/tree/date-selection-model.

Meanwhile we have started a new branch that will contain both the selection model changes, plus additional components and UI to deal with selecting ranges of dates. That code will live here (currently it's just the selection model changes): https://github.com/angular/components/tree/date-range.

mmalerba avatar May 21 '19 22:05 mmalerba

Hi mmalerba ,

when this feature get release for version 7.3.2 , & how can I adopt in project till release.

shahbaazchaviwale avatar Jun 14 '19 10:06 shahbaazchaviwale

Any news? 👀 🙄

Pijuli avatar Jul 15 '19 10:07 Pijuli

@Pijuli Still in review. Sorry that this is taking longer than expected.

roboshoes avatar Jul 16 '19 22:07 roboshoes

Hi, I need a Rangepicker with 2 calendar side by side. I downloaded the project and I made a workaround to do it. Exist the possibility of add this feature here? Captura de tela de 2019-08-14 16-15-36

rvoltolini avatar Aug 14 '19 19:08 rvoltolini

@rvoltolini You can make a pr in my repo. So, people would be able to you it.

SaturnTeam avatar Aug 15 '19 05:08 SaturnTeam

is this still in progress? wondering if we should start looking for a third party solution.

clement911 avatar Sep 02 '19 10:09 clement911

It would be a very nice feature, please speed up the process!

azollai avatar Sep 06 '19 09:09 azollai

@mmalerba / @roboshoes Any news?

absalonv avatar Oct 07 '19 21:10 absalonv

There's nothing new to report here. Nobody on the core team currently has time to work on this, but we are still working with some contributors who are able to work on it part time

mmalerba avatar Oct 08 '19 18:10 mmalerba