# API call with exact timestamps

**URL:** <https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [February 23, 2022, 10:30am UTC](https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245 "2022-02-23T10:30:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [April 1, 2022, 11:00am UTC](https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245/2 "2022-04-01T11:00:49Z")

</div>

Hi&nbsp;[@Litodrako1992](https://community.dynatrace.com/user/47291),

the following format is supported by the API for the ‘from’ and ‘now’ fields:

```markup
params = {
'from': '2022-03-20T00:00:00.000+02:00',
'now': '2022-03-31T00:00:00.000+02:00'
}

```

The +02:00 defines the UTC timezone, which for my case is +02:00, adjust this value to your timezone as needed, default is UTC +00:00 (basically means you could also leave that last part out)

You can also leave the milliseconds out, just in case you may need them.

So a simplified version of the timestamp could look like this:&nbsp;2022-03-20T00:00:00

Best,

Mark

---

_[View the full topic](https://community.dynatrace.com/t/api-call-with-exact-timestamps/34245)._
