44 likes
·
4.0K reads
5 comments
I have had some past encounters with the Date
API in past when doing some calendar stuff and it can get messy. Even though now unmaintained, I have found moment
still being a quick and easy way to get the desired formatted date with relative and locale data being consistent. Do you have any recommendations for new Date
libraries that you have encountered or do you think JavaScript Internationalization API standard itself would be enough going forward to use instead of other libraries when used in production apps ?
Hey Lakshya Thakur, yes! The JavaScript Internationalization API has huge potential. In fact, the best method shown in the article uses the same API internally(dateTimeFormat) method.
You should also look into the Temporal API.. that's in stage 3 of the proposal now.
This came to my feed just when I needed it, I appreciate it!
That's great. 👏