Open ascariandrea opened 2 years ago
moment
is often used for:
moment.duration
(measure the distance between two times and return an humanized version)moment.add
/moment.subtract
moment.isBefore
/moment.isAfter
are there functionalities supported by date-fns
?
yep @vecna, date-fns
provides proper methods to achieve everything you can get with moment
.
I opened this PR #355 that shows how can be used for formatting and operate (add/sub) on dates.
moment
is actually quite heavy and can be easily replaced withdate-fns
(already in use in the project). This will consolidate our "date" api and methods. We can also think about creating proper shared utils and helpers usable by every package.Tasks:
moment
occurrences withdate-fns
inextension
moment
occurrences withdate-fns
inyttrex
moment
occurrences withdate-fns
inguardoni
moment
occurrences withdate-fns
inycai
moment
occurrences withdate-fns
intktrex
moment
from every workspacepackage.json