Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

D lang syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:datedif(date1,date2,date_units)

networkdays(date1,date2,[arraystring_holidayholidays])


ArgumentRequired?Data TypeDescription
date1YdatetimeStarting date to compare
date2YdatetimeEnding date to compare
arraystring_holidayholidaysNarrayAn array of string values string

A string literal value formatted as an array representing the valid dates of holidays.

Info

NOTE: This value must be a literal value. Column references are not supported.


D s lang notes

date1, date2

...

Required?Data TypeExample Value
YesDatetime (Column reference or date output of DATE or TIME function)LastContactDate

...

string_

...

holidays

A string, formatted as an array, which contains the list of holidays, which are factored in the calculation of working days.

Values in the array must be in either of the following formats:

Code Block
['2020-12-24','2020-12-25']
['2020/12/24','2020/12/25']


Info

NOTE: This value must be a literal value. Column references are not supported.

D s
snippetusage

Required?Data TypeExample Value
Yes
Array
String['2018-12,24','2018-12-25','2018-12-31','2019-01-01']

D s
snippetExamples

Example - Date diffing functions

...