Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
balbant
Streaming Star

Convert time and date from one time zone to another.

I have a particular date and time. Now, I want to convert the time according to device current time zone. Basically what I need is an script that, when provided with a time and a timezone can return the time in another time zone. How can I achieve it ?
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Convert time and date from one time zone to another.

Sounds like you'd first need to convert the incoming time to UTC then you can use this to get the box's local time: ToLocalTime[/url:33qrxmw3]
aspiring
0 Kudos