Number of days between 2 dates

You can return the number of days between 2 dates by subtracting them.


Example

 A
1=TODAY() = Sunday 19 May 2024
2=NOW() = Sunday 19 May 2024 13:52:44
3=A1+7 = 5/26/2024 0:00
4=A1+14 = 6/2/2024 0:00
5=DATEDIF(A1, A3, "D") = 7
6=DATEDIF(A1, A4, "D") = 14
7="01/08/03"-"28/08/03" = -27
8=A4-A1 = 14

1 - Displays the current date. Custom format "dddd dd mmmm yyyy".
2 - Displays the current date and time. Custom format "dddd dd mmmm yyyy hh:mm:ss".


Built-in Functions

TODAY - The date serial number representing today's date.
NOW - The date serial number of the current system date and time.
DATEDIF - (Compatibility) The number of days, months or years between two dates.


User Defined Function

DATEDIFFERENCE - Returns the number of days, months or years between two dates.


Related Formulas

Number of days between 2 dates excluding weekends
Number of Mondays between 2 dates
Number of days in a particular month
Number of days in a particular year


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited Top