---
description: This functions compares two dates and gives back the difference.
---

# compareDates

## Params

date1: Date

date2: Date

<figure><img src="https://616884300-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAJYsZUxycDfiuLMcx4pl%2Fuploads%2Fzr0rtD1oxSC6BZraUZdk%2Fimage.png?alt=media&#x26;token=58d63149-664d-42bc-8227-23ab663ebf3a" alt=""><figcaption></figcaption></figure>
