this post was submitted on 24 Jan 2025
55 points (100.0% liked)

JavaScript

2124 readers
1 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 week ago (1 children)

Man, I can't remember the last time I used Date. I either use moment or... the other big one. I think it's just a three letter name?

[–] Deebster 2 points 1 week ago (2 children)

date-fns? It's third in my search results but doesn't ring any bells to me.

[–] [email protected] 6 points 1 week ago

Day.js possibly. It’s a near drop-in for moment since moment is deprecated.

[–] [email protected] 3 points 1 week ago

Yeah, that one! It's a pretty nice library. The difference between it and moment is that date-fns operates on standard Date objects, rather than having its own type