DATEDIFFERENCE
Returns the difference between two dates.
start_date | The date that represents the starting date of the period. |
end_date | The date that represents the finishing date of the period. |
unit | The type of information you want returned: "d","D" = number of days between "start_date" and "end_date" "m","M" = number of months (whole months) between "start_date" and "end_date" "y","Y" = number of years (whole years) between "start_date" and "end_date" "md","MD" = number of days between "start_date" and "end_date" (ignoring months and years) "yd","YD" = number of days between "start_date" and "end_date" (ignoring years) "ym","YM" = number of months between "start_date" and "end_date" (ignoring days and years) |
date_format | (Optional) The date format "UK" or "US". |
Remarks
* This is a replacement for the DATEDIF backwards compatibility function.
* If you are including the date directly then it must be enclosed in double quotes.
* The equivalent VBA function is DATEDIFFERENCE
|
1 - How many days are there between 1 Jan 2020 and 20 Jan 2020.
© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext