To get a date that occurs exactly 30 days from today. Enter the TODAY function into cell B2 to return todays date. In fact calculating someones age based on the date of birth is a special case of calculating date difference in Excel where the end date is todays date.
There are several ways to calculate the difference between two times.
To calculate and display the time between dates in days months and years you can use the a formula based on the DATEDIF function. This formula returns the current date formatted as a date. You use the subtraction operator - to find the difference between times and then do either of the. Learn how to format a cell as a number or date.