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
247 stars 248 forks source link

Revist momentjs usage? #358

Closed Zeouterlimits closed 3 years ago

Zeouterlimits commented 3 years ago

Wanted to raise the question of now that momentjs is locked, whether it would be worth moving to a smaller, similar datetime library, like dayjs or luxon?

Dayjs is very similar to moment, but is smaller - https://github.com/iamkun/dayjs/ Luxon is probably a bigger amount of work, but it is the modern library suggested by the momentjs team.

gjsmith66 commented 3 years ago

I have a fork that supports dayjs at https://github.com/gjsmith66/ngx-daterangepicker-material-dayjs

aceleghin commented 3 years ago

In 2021 you need to consider to work with dayjs, luxon or date-fns instead of momentjs imho. Dayjs is very similar and a lot smaller.

fetrarij commented 3 years ago

Hello, the component is now with dayjs. v5 is out for that.