# Dynatrace API Timestamp

**URL:** <https://community.dynatrace.com/t/dynatrace-api-timestamp/13677>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [July 12, 2018, 9:15am UTC](https://community.dynatrace.com/t/dynatrace-api-timestamp/13677 "2018-07-12T09:15:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajdimanuel](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ajdimanuel](https://community.dynatrace.com/u/ajdimanuel)\
**Post date:** [July 12, 2018, 9:15am UTC](https://community.dynatrace.com/t/dynatrace-api-timestamp/13677/1 "2018-07-12T09:15:23Z")

</div>

Hi,

I’m testing Dynatrace API sending GET parameter startTimestamp and endTimestamp. For converting timestamp dates I am using [Unix Time Stamp - Epoch Converter](https://www.unixtimestamp.com/index.php) but it is not working properly.

If I run a GET using a relative time (for example 15mins) the timestamp value has this format “1531386540000” (13 digits). When I generate a timestamp it has 10 digits, example “1531299600”. Do you know how can I convert a time using same format as Dynatraces does?

Thanks.

Alberto.

###

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [July 12, 2018, 9:25am UTC](https://community.dynatrace.com/t/dynatrace-api-timestamp/13677/2 "2018-07-12T09:25:56Z")

</div>

Multiply your timestamp by 1000 as Dynatrace uses milliseconds.

---

<div class="post-metadata">

**Author:** ![ajdimanuel](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ajdimanuel](https://community.dynatrace.com/u/ajdimanuel)\
**Post date:** [July 12, 2018, 9:48am UTC](https://community.dynatrace.com/t/dynatrace-api-timestamp/13677/3 "2018-07-12T09:48:17Z")

</div>

ok, it works.

Thanks.

Alberto.
