days_between

days_between function returns the number of days between date1 and date2.

Syntax

days_between(date1, date2)

Parameters

date1 and date2 should be in the following format: (year, month, day)

Examples

days_between(date(2020, 12, 25), date(2020, 12, 30)) returns -5

Related links

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

true
Search
Clear search
Close search
Google apps
Main menu
6959173695937250346
true
Search Help Center
true
true
true
true
true
5055977
false
false