date/util

Date utility functions

Source:
Since:
  • 0.1.0

Methods

(inner) dateDifference(unit, date_from, date_to) → {number}

Source:

Work out the difference between 2 dates

Parameters:
Name Type Description
unit string

The unit you want to the difference i.e days, months, years

date_from date

Date to start

date_to date

Date to finish

Returns:

Unit between start and end dates

Type
number