> For the complete documentation index, see [llms.txt](https://astro-rpa.gitbook.io/astro-rpa-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://astro-rpa.gitbook.io/astro-rpa-user-guide/g_elements/el_basic/els_data/els_datetime/el_datediff.md).

# Date diff

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-16fe17ef234f0a75f66653bd0d591d691075f801%2Fimage%20\(151\).png?alt=media)

Element that gets difference between two dates.

![](https://1755238209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNnEkyZmLMSWTDXxpygbG%2Fuploads%2Fgit-blob-c5c6464e72fbf0ae72aed709004401c3a080d6b2%2Fimage%20\(206\).png?alt=media)

Properties

* Date\*: \[DateTime] Base date
* Part\*: Required date/time part
* Substract\*: \[DateTime] Substraction date
* Result\*: \[Long] Result value
