DaysSinceFromDate function

Returns the number of days from the source date to the given date.

Namespace

datetime

Input

first date(date), second date(date)

Output

days between source and given date (long)

Example

If sourcedate contains the date 1958–08–18 and givendate contains the date 2008–08–18, then the two following functions are equivalent, and return the long value 18263

set-column result datetime:DaysSinceFromDate('2008-08-18','1958-08-18') set-column result datetime:DaysSinceFromDate(sourcedate,givendate)

 

Created in 2020 by Google Inc.