# Unable to convert event.start from fetch bizevents into timestamp using timestampFromUnixNanos

**URL:** <https://community.dynatrace.com/t/unable-to-convert-event-start-from-fetch-bizevents-into-timestamp-using-timestampfromunixnanos/50488>\
**Category:** DQL\
**Tags:** dql, bizevents, notebooks\
**Created:** [February 27, 2025, 1:23pm UTC](https://community.dynatrace.com/t/unable-to-convert-event-start-from-fetch-bizevents-into-timestamp-using-timestampfromunixnanos/50488 "2025-02-27T13:23:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlanFoley](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Post date:** [February 27, 2025, 1:23pm UTC](https://community.dynatrace.com/t/unable-to-convert-event-start-from-fetch-bizevents-into-timestamp-using-timestampfromunixnanos/50488/1 "2025-02-27T13:23:12Z")

</div>

Hi All

I have this DQL which produces the desired output:

fetch bizevents  
| filter event.type == “cost.list.spend”  
| lookup [fetch dt.entity.host | fieldsAdd entity.name,osArchitecture,osType],sourceField:dt.entity.host,lookupField:id,prefix:“host.”  
| fieldsAdd event.start\_timestamp = timestampFromUnixNanos(event.start)

However I am unable to convert&nbsp;event.start into a timstamp using&nbsp;timestampFromUnixNanos

As per the documentation here:&nbsp;[Business Analytics — Dynatrace Docs](https://docs.dynatrace.com/docs/discover-dynatrace/references/semantic-dictionary/model/business-analytics#business-events)

event.start&nbsp;string&nbsp;&nbsp;stable&nbsp;The event start timestamp in UTC (given in Grail preferred Linux timestamp nano precision format).

The value in my DQL output for event.start in this case is&nbsp; 1740622469442 so there is a value there (translates as&nbsp;27 February 2025 15:20:45 )

Am I using the correct function? Any suggestions appreciatedThanksAlan

---

<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:** [February 27, 2025, 10:44pm UTC](https://community.dynatrace.com/t/unable-to-convert-event-start-from-fetch-bizevents-into-timestamp-using-timestampfromunixnanos/50488/2 "2025-02-27T22:44:04Z")

</div>

It’s a string (green)

| fieldsAdd timestampFromUnixMillis(toLong(event.start))

 ![mark_bley_0-1740696166287.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/406d62e3b26db38ee43d014582ee1339b73100ad.png)

---

<div class="post-metadata">

**Author:** ![AlanFoley](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@AlanFoley](https://community.dynatrace.com/u/AlanFoley)\
**Post date:** [February 28, 2025, 4:59am UTC](https://community.dynatrace.com/t/unable-to-convert-event-start-from-fetch-bizevents-into-timestamp-using-timestampfromunixnanos/50488/3 "2025-02-28T04:59:45Z")

</div>

Thanks Mark

You are correct in both instances - it needs to be converted from a string and i need to use&nbsp;timestampFromUnixMillis instead

Appreciate your time

Regards

Alan
