website logo
Navigate through spaces
Carrot reference
⌘K
Carrot reference
Getting started with Carrot
Premade Carrot filters
Operator precedence
Expression truthiness
Carrot fields
Basic Org Information
Compensation
Job Changes
Permissions
Personal
Recruiting
Structure
Time off
Data types
Elements of Carrot expressions
Functions
Operators
Keywords
Aggregators
Docs powered by archbee 
website logo

daysOffBetween()

Returns the number of days off taken between two given dates.

Syntax

daysOffBetween(fromDate, toDate)

  • fromDate - the date from which to begin counting number of days off.
  • toDate - the date at which counting stops.
  • Return type: Number

Sample usage

daysOffBetween('2020-10-12', '2020-11-12') returns the number of days off taken during the specified one month period.

Supported data types

Input type

Return type

Logic

Date (x2)

Number

The function will count the number of days off beginning with fromDate, and ending with toDate.

Unsupported data types

Null

Unsupported data types return Null.

Updated 01 Feb 2023
Did this page help you?
Yes
No
UP NEXT
diffYears()
Docs powered by archbee