DAYS function is introduced in Excel 2013 and it is very useful function to calculate the number of days between two dates.
= DAYS(end_date, start_date)
Example:- If we apply DAYS function to find out the number of days between 12/31/2012 and 12/01/2012 as =DAYS(“12/31/2012″, ” 12/1/2012″), the answer would be 30.
The beauty of this function is that it will still work if one of the date among two dates, is entered as text, for example =DAYS(“12/31/2012″, “1-Dec-2012″), will still produce result as 30 because as per function property, if either one of the date is text, the formula will treat that as DATEVALUE (date_text) and still return correct result.
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.