Specifica l'operatore -
(meno) per calcolare il numero di giorni compresi tra due date.
Sintassi
end_date - start_date
end_date
e start_date
possono essere:
- Un'altra funzione che restituisce una data.
- Una colonna formula che restituisce una data.
Se end_date
è precedente a start_date
, la funzione restituisce un valore negativo.
Esempi
(date(2012, 1,10)) - (date(2012, 1,1))
restituisce 9- Se oggi è il 1° gennaio 2015 e disponi di tre colonne formula (c:"year" che restituisce 2015, c:"month" che restituisce 1 e c:"day" che restituisce 15), la seguente funzione restituisce -14:
today() - date(c:"year", c:"month", c:"day")