# Timestamp to date

**URL:** <https://forum.flow.com/t/timestamp-to-date/2662>\
**Category:** 🏄🏻‍♀️ Cadence\
**Created:** [December 20, 2021, 12:05am UTC](https://forum.flow.com/t/timestamp-to-date/2662 "2021-12-20T00:05:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![beppeben](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@beppeben](https://forum.flow.com/u/beppeben)\
**Post date:** [December 20, 2021, 12:05am UTC](https://forum.flow.com/t/timestamp-to-date/2662/1 "2021-12-20T00:05:52Z")

</div>

Hi, is there any function that can be used to convert the Flow timestamp to an actual date, like dd-mm-yyyy?

---

<div class="post-metadata">

**Author:** ![j00lz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/j00lz/32/1940_2.png) [@j00lz](https://forum.flow.com/u/j00lz)\
**Post date:** [December 30, 2021, 7:44am UTC](https://forum.flow.com/t/timestamp-to-date/2662/2 "2021-12-30T07:44:16Z")

</div>

There are no functions to do this in Cadence.  
Saying that t’s just a standard Unix timestamp so you can convert it for display using js

```auto
const milliseconds = timestamp * 1000
const dateObject = new Date(milliseconds)
const humanDateFormat = dateObject.toLocaleString()

```
