# Convert duration data type

**URL:** <https://community.hubspot.com/t/convert-duration-data-type/69670>\
**Category:** Tickets & Conversations\
**Created:** [November 21, 2022, 4:03pm UTC](https://community.hubspot.com/t/convert-duration-data-type/69670 "2022-11-21T16:03:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meoquytoc](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@meoquytoc](https://community.hubspot.com/u/meoquytoc)\
**Post date:** [November 21, 2022, 4:03pm UTC](https://community.hubspot.com/t/convert-duration-data-type/69670/1 "2022-11-21T16:03:52Z")

</div>

Hello everyone,

I tried to export the “Time to close” property which is the amount of time from the ticket create date to the ticket end date to the CSV file (picture one).

 ![1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/6/163279c1b84a4d5ab95878ca82435cd4c34cc39d.png)  
Picture 1  
Instead of getting the duration of time like the first picture, I got the date data type that starts from 1900 (picture 2)

 ![2.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/7/673e011dbf65da06bb9cb7f529d11280dd432ee4.png)  
Picture 2  
I wonder what is the keyword for the date data type that I got in the CSV file and what is the guideline to convert date data back to duration like in picture 1

---

<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 21, 2022, 6:01pm UTC](https://community.hubspot.com/t/convert-duration-data-type/69670/2 "2022-11-21T18:01:17Z")

</div>

Hi @meoquytoc,

2/8/2019 is the date that Excel defaults to when it cannot recognize another date. When you type the ‘959:02:17’ into a new cell in a new Excel document, this happens, too:

 ![karstenkoehler_0-1669053522048.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/1/e163d38594d74627a32d5c45fd106aca70f1f462.png)

When you right click into the cell \> _Format Cells_ \> _Number,_ you will get a formatting like the HubSpot column:

 ![karstenkoehler_1-1669053666886.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/2/a29d369cad8d07adcaa42b991965423964568b6d.png)

Best regards!
