Re:Dates and Times in JavaScript – A New API for Dates from ...
by WorldMaker on Thursday July 09, 2020 @03:24PM
(#23784029)
Luxon is great.
Also, if you find you only really need one or maybe two date time utilities, date-fns [1] is an alternative that that takes an even more modular approach for tinier imports.
Re:Dates and Times in JavaScript – A New API for Dates from ...
by flipchart on Thursday July 09, 2020 @01:06PM
(#23782366)
I'm using React Widgets[0] and I prefer moment over Globalize (been through so much pain with this). Maybe it's time to either write a localizer for Luxor or find a new date time picker
Re:Dates and Times in JavaScript – A New API for Dates from ...
by WorldMaker on Thursday July 09, 2020 @03:28PM
(#23784064)
Depending on your specific needs [0], a lot of date localization can be done (painfully, but possibly) directly with Browser Intl [1] calls instead of a library.
[0] Current user's current locale is easy. If for some reason you need to show some other locale than what the browser is using you'll likely still need Moment or Globalize.
[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[0]: https://moment.github.io/luxon/index.html [1]: https://moment.github.io/luxon/docs/manual/moment.html