> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: DaysBetween

> Calculate the number of days between two datetime values using a fractional rounding approach. Compare with DATEDIFFDAYS for different behavior.

## Description

Returns the number of days between the end\_datetime and the start\_datetime.

## Syntax

`DaysBetween(end_datetime, start_datetime)`

## Arguments

*end\_datetime* - datetime expression.

*start\_datetime* - datetime expression.

## Examples

`DaysBetween(ToDate('2013-09-10T08:02:31.667Z'),ToDate('2012-03-03T13:34:39.648Z'))` returns 555

## Return value datatype

Long

## Impact of null value

If input is null, returns null.
