RFC 3339 format gave error, but ISO 8601 worked amicably!

Somehow, while setting the date, the date format came out as
“1992-06-24T00:00:00+5.5:30”

Which gives error. I’ll have to check, why that was the case with the library.

P.S. Documentation for the date-fns library is wrong it seems.

I have raised a GitHub issue for the date-fns team.

And I found it better to use DayJS instead. It has 2kb footprint.

1 Like