# "Last Modified Date" export

**URL:** <https://community.hubspot.com/t/last-modified-date-export/94519>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** workflows\
**Created:** [November 21, 2023, 8:48pm UTC](https://community.hubspot.com/t/last-modified-date-export/94519 "2023-11-21T20:48:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![forestfranzose](https://avatars.discourse-cdn.com/v4/letter/f/e9a140/32.png) [@forestfranzose](https://community.hubspot.com/u/forestfranzose)\
**Post date:** [November 21, 2023, 8:48pm UTC](https://community.hubspot.com/t/last-modified-date-export/94519/1 "2023-11-21T20:48:30Z")

</div>

Hi! I set up a workflow to export deals to Google Sheets based on a trigger. The workflow appears to be functioning properly, however, it exports the “LastModifiedDate” as a strange number that I seem unable to convert to a date, they look something like:

| 1697809811371 |
| --- |
| 1700583807154 |
| 1700587620935 |
| 1700587623732 |
| 1700587625173 |
| 1700587706067 |
| 1700590017105 |

-- Is there a reason they are exported this way? Alternatively, does anybody know how to convert these to a proper date format? I’ve tried the function TO\_DATE in Google Sheets to no avail

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [November 22, 2023, 5:22am UTC](https://community.hubspot.com/t/last-modified-date-export/94519/2 "2023-11-22T05:22:23Z")

</div>

Hi @forestfranzose,

For dates in Google Sheets, HubSpot sends unix timestamps in milliseconds. To convert dates from milliseconds, you would create a separate column and add the the following formular:

`=arrayformula(if(A2:A<>"",(A2:A/1000)/ 86400 + DATE(1970, 1, 1),""))`

… replacing column A with the colum that the unix timestamp is in.

Alternatively, the EPOCHTODATE function should also work: [EPOCHTODATE function - Google Docs Editors Help](https://support.google.com/docs/answer/13193461?hl=en)

Hope this helps!
