Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
jeet1224
Level 7

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")
date.FromISO8601String()
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