Adobe's Internationalized JavaScript library

1 min read

I’m writing quite a bit of code in JavaScript these days.

I’m switching to the @internationalized/date library from Adobe as soon as I have a chance to get it in my code. It’s too bad that they put that JavaScript package in the same repository as their React components, so issues, etc. are all lost in the noise of the UI library.

It has specific types that I can immediately use including CalendarDate (just a date, no time!) and Time (just a clock time). There are nice math functions as well (adding for example).

You can add by intervals that may make an Epic developer happy (M+1 anyone?):

javascript
let date = new CalendarDate(1979, 04, 12);
date.add({ months: 1 }); // 1979, 05, 12

Adobe Internationalized Date