# Change time zone ONLY for one field

**URL:** <https://community.amazonquick.com/t/change-time-zone-only-for-one-field/30309>\
**Category:** Q&A\
**Tags:** calculations, time-zone, Business-Intelligence-Engineer, quick-sight\
**Created:** [May 21, 2024, 10:01am UTC](https://community.amazonquick.com/t/change-time-zone-only-for-one-field/30309 "2024-05-21T10:01:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![remba87](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@remba87](https://community.amazonquick.com/u/remba87)\
**Post date:** [May 21, 2024, 10:01am UTC](https://community.amazonquick.com/t/change-time-zone-only-for-one-field/30309/1 "2024-05-21T10:01:43Z")

</div>

Hello,

I have data in the same dataset coming from different timezones. I found the nice features that changes all the data type column according to a specific UTC.

However I wnated to change only 1 of them.

I tried to do like this:  
parseDate(toString(formatDate(timestamp,‘MM-dd-yyyy’,‘Europe/Stockholm (UTC+02:00)’)))

![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/2/d/2dfcef98d61315bb7dbcdfdc33211859deb2cc0d.png)  
but it does not work.

Is there a better way to change only one column to a specific timezone?

thank you

---

<div class="post-metadata">

**Author:** ![remba87](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@remba87](https://community.amazonquick.com/u/remba87)\
**Post date:** [May 21, 2024, 10:12am UTC](https://community.amazonquick.com/t/change-time-zone-only-for-one-field/30309/2 "2024-05-21T10:12:33Z")

</div>

Sorry I noticed of an error, the new calculated field is  
parseDate(toString(formatDate(timestamp,‘MM-dd-yyyy HH:mm:ss’,‘Europe/Stockholm’)),‘MM-dd-yyyy HH:mm:ss’ )

but it does not add the 2 hours to the timestamp column

---

<div class="post-metadata">

**Author:** ![ArunSanthosh](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/arunsanthosh/32/3292_2.png) [@ArunSanthosh](https://community.amazonquick.com/u/ArunSanthosh)\
**Post date:** [May 24, 2024, 4:54pm UTC](https://community.amazonquick.com/t/change-time-zone-only-for-one-field/30309/3 "2024-05-24T16:54:34Z")

</div>

Hi Luca @remba87,

If you want to add an offset to just one date field, you can do it using addDateTime function.  
Sample given below.

```auto
addDateTime(2, 'HH', {Order Date})

```

Regards,  
Arun Santhosh  
Pr Quick Sight SA

---

<div class="post-metadata">

**Author:** ![remba87](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@remba87](https://community.amazonquick.com/u/remba87)\
**Post date:** [May 27, 2024, 1:36pm UTC](https://community.amazonquick.com/t/change-time-zone-only-for-one-field/30309/4 "2024-05-27T13:36:18Z")

</div>

@ArunSanthosh Hello, yes, I tried this, however, this will not take into account the fact that during winter, instead of 2 I should put 1 since the time will change…
