Dates Compare


#1

There is some form, or function in Ionic, that returns the address in days between two dates, example: I want to know the days between 2018-10-28 and 2018-11-05 = 9 days.

Thanks
Best regards


#2

Exactly what you are looking for, and that library is pretty much everything you want or need for date-related stuff. Don’t listen to any of the people who will come in and recommend moment: it will needlessly bloat your app binary and requires an unwieldy dedicated object, whereas date-fns works cleanly with either JavaScript Dates or ISO8601 strings.


#3

Hi

You can use almost any library or function in javascript for Ionic.
Use javascript without fear.