fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
249 stars 252 forks source link

Possibility to use end date now #356

Open shoerantner opened 3 years ago

shoerantner commented 3 years ago

I want to have the possibility to set the endDate to now

fetrarij commented 3 years ago

Hello @shoerantner ,

I really apreciate your improvment, but I think having it more cleaning and more customisable would be great. I am thinking about something like defineEndDate or 'fixEndDateorendDateTo` or ... just to say the endDate is set fixed to a date provided. example:

fixEndDateTo="2021-12-12" [fixEndDateTo]="date" where date = now()in TS ....

What do you think about that? Could you create a new PR for that?

Thank you, and sorry for the late reply :)

lluisnieto commented 3 years ago

This comment has nothing to do with this PR. Just to let the author know that this library, right now is broken. It does not compile in production mode. Dayjs cannot be loaded.