# Convert Date time Using StandardTimeZonename instead of Zoneid

**URL:** <https://discuss.elastic.co/t/convert-date-time-using-standardtimezonename-instead-of-zoneid/305800>\
**Category:** Elasticsearch\
**Created:** [May 27, 2022, 12:49pm UTC](https://discuss.elastic.co/t/convert-date-time-using-standardtimezonename-instead-of-zoneid/305800 "2022-05-27T12:49:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.Naim](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@M.Naim](https://discuss.elastic.co/u/M.Naim)\
**Post date:** [May 27, 2022, 12:49pm UTC](https://discuss.elastic.co/t/convert-date-time-using-standardtimezonename-instead-of-zoneid/305800/1 "2022-05-27T12:49:30Z")

</div>

Hi Team,

I am facing issue to convert Datetime value into their Specific time zone by refering Timezone name from doc.

Scenario:  
In my scenario, we have data for different timezones on elastic with thereTimezone belonging field, I want to use full name of TimeZone (attached) instead of using ZoneId like (UTS, PST,CST) to make it dynamic.

In my example, I am able to convert the datetime by passing the sort name of Zone but want to use the full name as we have in the document.

Kindly help me to get the date converted in their mentioned timezone. attached example of one-time zone but we have others as well. like

Hawaiian Standard Time  
Alaskan Standard Time  
Pacific Standard Time  
Mountain Standard Time  
Central Standard Time  
Eastern Standard Time  
West Pacific Standard Time

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/a/7a130384686ab397b088865d78dc9bbcc1d44b78.png)

Thanks for helping.

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [May 27, 2022, 1:22pm UTC](https://discuss.elastic.co/t/convert-date-time-using-standardtimezonename-instead-of-zoneid/305800/2 "2022-05-27T13:22:12Z")

</div>

Hi @M.Naim .

I believe that with the StandardTimeZone name it is not possible to find the timezone. The correct is to use the ID.  
I don't know if you can perform a reprocessing of the data to index the ZoneId but it would be the most interesting.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 24, 2022, 1:22pm UTC](https://discuss.elastic.co/t/convert-date-time-using-standardtimezonename-instead-of-zoneid/305800/3 "2022-06-24T13:22:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
