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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Channel Surfer

How to convert date time according to local rokusg device timezone from other timezone date time formats?

I want to convert date time according to my local rokusg device timezone from other timezone format ("EEE, dd MMM yyyy HH:mm:ss ZZZ","yyyy-MM-dd hh:mm:ss.SSSSxx","yyyy-MM-dd hh:mm:ss.SSSxxx","yyyy-MM-dd hh:mm:ss.SSxxxx","yyyy-MM-dd hh:mm:ss.Sxxxxx","yyyy-MM-dd hh:mm:ss").

date = CreateObject("roDateTime")
I use this FromISO8601String() method but it is working fine with "2009-01-01 01:00:00.000" format only but I want support mentioned all above format.

Please Help and provide a example for convert date time format according to timezone.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.