days-between
function
The days-between
action calculate the number of days between two dates. It belongs to the datetime category within the data area.
Action Syntax
days-between $variable and $variable
A variable name starting with $ followed by a value followed by A variable name starting with $
days-between $variable and YYYY-MM-DD
A variable name starting with $ followed by a value followed by A date in YYYY-MM-DD format
days-between YYYY-MM-DD and $variable
A date in YYYY-MM-DD format followed by a value followed by A variable name starting with $
days-between YYYY-MM-DD and YYYY-MM-DD
A date in YYYY-MM-DD format followed by a value followed by A date in YYYY-MM-DD format
Return Value
This function returns a
NUMBER
value that can be stored in a variable:
$result = days-between
Valid sizes
tiny
small
medium
large
extra
Examples
// Basic Usage
$number = days-between $start and $end
Action code: 4261051469
Version: 0.6.4
Last updated: 2025-06-13