Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Vinni2000
Contributor III
Contributor III

I want to reload time GMT timezone to EST timezone

I want convert timestamp GMT timezone to EST timezone timestamp , timestamp format  5/8/2023 12:32:08PM GMT

2 Solutions

Accepted Solutions
hic
Former Employee
Former Employee

Use ConvertToLocalTime().
 
The script below first interprets the original timestamp, then converts it and formats it to US format.
 
Load
Timestamp(ConvertToLocalTime(Interpreted , 'EST'),'M/D/YYYY hh:mm:ssTT') as Converted,
*;
Load 
Timestamp#(Left(Timestamp,Index(Timestamp,' ',2)-1),'D/M/YYYY hh:mm:ssTT') as Interpreted,
Timestamp
Inline
[Timestamp
5/8/2023 12:32:08PM GMT
5/9/2023 02:32:08PM GMT];

View solution in original post

hic
Former Employee
Former Employee

You need to first strip the 'GMT' away, e.g.  
Left(TimestampVariable,Index(TimestampVariable,' ',2)-1)

Then interpret it using Timestamp#():  
Timestamp#(<TheAboveExpression>,'D/M/YYYY hh:mm:ssTT')

Then you can use ConvertToLocalTime().

View solution in original post

3 Replies
hic
Former Employee
Former Employee

Use ConvertToLocalTime().
 
The script below first interprets the original timestamp, then converts it and formats it to US format.
 
Load
Timestamp(ConvertToLocalTime(Interpreted , 'EST'),'M/D/YYYY hh:mm:ssTT') as Converted,
*;
Load 
Timestamp#(Left(Timestamp,Index(Timestamp,' ',2)-1),'D/M/YYYY hh:mm:ssTT') as Interpreted,
Timestamp
Inline
[Timestamp
5/8/2023 12:32:08PM GMT
5/9/2023 02:32:08PM GMT];
Vinni2000
Contributor III
Contributor III
Author

I am not getting answer , i stored timestamp in variable when i use that variable in converttolocatime function getting error like variable not exists 

hic
Former Employee
Former Employee

You need to first strip the 'GMT' away, e.g.  
Left(TimestampVariable,Index(TimestampVariable,' ',2)-1)

Then interpret it using Timestamp#():  
Timestamp#(<TheAboveExpression>,'D/M/YYYY hh:mm:ssTT')

Then you can use ConvertToLocalTime().