# Hubspot date field returns a string, not a timestamp...

**URL:** <https://community.hubspot.com/t/hubspot-date-field-returns-a-string-not-a-timestamp/110738>\
**Category:** CMS Development\
**Created:** [July 5, 2024, 10:45am UTC](https://community.hubspot.com/t/hubspot-date-field-returns-a-string-not-a-timestamp/110738 "2024-07-05T10:45:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMassingham](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@AMassingham](https://community.hubspot.com/u/AMassingham)\
**Post date:** [July 5, 2024, 10:45am UTC](https://community.hubspot.com/t/hubspot-date-field-returns-a-string-not-a-timestamp/110738/1 "2024-07-05T10:45:31Z")

</div>

I’ve set up a simple module that has a date field.

Here’s a snippet from your docs:

```lia-code-sample
Type: Timestamp 

Description: The Unix Epoch timestamp for the date and time you want to default to. Leave this null to allow the date and time picker to start the content creator at the current date and time in the picker.

```

When I pprint it to the page I see the following:

`event_date=2024-07-06 00:00:00`

Any idea why I’m getting a string and not a numerical value?

---

<div class="post-metadata">

**Author:** ![Humashankar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/humashankar/32/30856_2.png) [@Humashankar](https://community.hubspot.com/u/Humashankar)\
**Post date:** [July 5, 2024, 3:20pm UTC](https://community.hubspot.com/t/hubspot-date-field-returns-a-string-not-a-timestamp/110738/2 "2024-07-05T15:20:25Z")

</div>

Hi @AMassingham

HubSpot date fields are displayed in a human readable string format, as 2024-07-06 00:00:00, for easy understanding.

But internally, HubSpot stores date and time values as Unix Epoch timestamps, which represent seconds since 1970-01-01T00:00:00Z.

When retrieving dates via the API or other methods, they may be returned in a human readable string format, making it easier to work with.

This is why API responses often return dates as strings, like “2024-07-06 00:00:00”.

If you need to convert these date strings into Unix timestamps, you’ll need to manually parse the string into a timestamp using a programming language or library based on your convenience.

**Hope this helps - Happy to help further!!**  
**Thank you very much and have a great one!**  
**Warm regards**
