# Timestamps including seconds

**URL:** <https://forum.canton.network/t/timestamps-including-seconds/1186>\
**Category:** App Development\
**Tags:** daml, react\
**Created:** [September 10, 2020, 3:00am UTC](https://forum.canton.network/t/timestamps-including-seconds/1186 "2020-09-10T03:00:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesljaworski85](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jamesljaworski85/32/385_2.png) [@jamesljaworski85](https://forum.canton.network/u/jamesljaworski85)\
**Post date:** [September 10, 2020, 3:00am UTC](https://forum.canton.network/t/timestamps-including-seconds/1186/1 "2020-09-10T03:00:25Z")

</div>

Hey Everyone!

I am working with the ex-bond-trading model which requires some inputs as Time. I have used type Date before and have had no problem using standard material-ui date pickers which represent dates as “2020-09-09”.

However, this particular model requires DateTime (including seconds). What format is the DAML-LF compiler expecting for this? The material ui DateTime picker returns “2020-09-09T00:00”. This didn’t work. I also tried adding seconds below.

`

`> Error: JsonError: cannot interpret 2018-05-14T00:00:00 as Timestamp`

`  
I’m not so concerned with building a custom component that formats the DateTime correctly, as much as figuring out the correct format that DAML-LF is expecting. I can hardcode the datetime if need be for demonstration purposes.

Thanks!

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [September 10, 2020, 5:12am UTC](https://forum.canton.network/t/timestamps-including-seconds/1186/2 "2020-09-10T05:12:23Z")

</div>

Hi @jamesljaworski85, you can find all documentation on the JSON format at [https://docs.daml.com/json-api/lf-value-specification.html#timestamp](https://docs.daml.com/json-api/lf-value-specification.html#timestamp). For DAML-LF Timestamps, you need an ISO 8601 string of a UTC time. In your example, that would be `2020-09-09T00:00Z`.

---

<div class="post-metadata">

**Author:** ![jamesljaworski85](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jamesljaworski85/32/385_2.png) [@jamesljaworski85](https://forum.canton.network/u/jamesljaworski85)\
**Post date:** [September 10, 2020, 11:20am UTC](https://forum.canton.network/t/timestamps-including-seconds/1186/3 "2020-09-10T11:20:22Z")

</div>

Thanks for pointing me in the correct direction, @cocreature! I had not seen that part of the documentation yet.
