Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.
The DAYS function returns an Integer value that represents the number of days between one specified date and a second specified date.
Syntax
DAYS (date 1, date 2) as Integer
Arguments
date 1: Date
A date value that represents the start date for the calculation of the number of days.
date 2: Date
A date value that represents the end date for the calculation of the number of days.
Return values
Integer
The resulting numeric value.
Usage notes
The DAYS function returns a positive value when the first date is later than the second date, it returns 0 (zero) when the first date equals the second date, and it returns a negative value when the first date is earlier than the second date.
Example
DAYS (TODAY (), DATEVALUE( DATETIMEFORMAT( ADDDAYS ( NOW(), 1), "yyyyMMdd"), "yyyyMMdd")) returns -1.