3 ms·
All the date libraries have different APIs. The only one that is currently standard (the Date object) is full of footguns and hard to use. You either ship with
by hajile 6y ago
All the date libraries have different APIs. The only one that is currently standard (the Date object) is full of footguns and hard to use.
You either ship without any date support at all or you pick a library and go. Very little comes close to Moment for i18n and timezone support, so lots of libraries go with that.
The Temporal proposal to replace Date can't happen fast enough.