English
Appearance
Calculates the difference between two given dates and returns the number of days.
date1::Date
date2::Date?
number'
dayDiff(new Date('2021-01-01'), new Date('2021-01-03')); // Returns 2