# DATEDIF ## Definition(s) ### Context: [[Nexus - Google Analytics Certificate Course|Google Analytics Certificate]] #### Sub-context: [[Function#Spreadsheet functions|Spreadsheet functions]] >[! Definition] >A spreadsheet function that calculates the difference between two dates. ## Examples Use when looking to measure the amount of time between two datetime objects in a spreadsheet. ```excel =DATEDIF(start_date, end_date, unit) ``` ## Related ## Resources [Google docs](https://support.google.com/docs/answer/6055612?hl=en) ## Flashcards The below code are generated for use with [Spaced Repetition plugin](https://github.com/st3v3nmw/obsidian-spaced-repetition/) [docs](https://www.stephenmwangi.com/obsidian-spaced-repetition/) A spreadsheet function that calculates the difference between two dates. @@@ [[DATEDIF|=DATEDIF()]]