mystery_dude_br
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2018
09:14 AM
roDateTime fromISO8601String
I'm trying to use the method `fromISO8601String` but it always returns "<UNINITIALIZED>", no matter the string I pass in.
Even creating a new date, pulling the current date and converting that has the same result:
Even creating a new date, pulling the current date and converting that has the same result:
date = CreateObject("roDateTime")
currentISODate = date.ToISOString()
isoDate = date.FromISO8601String(currentISODate)
print isoDate
1 REPLY 1
belltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2018
01:53 PM
Re: roDateTime fromISO8601String
isoDate = CreateObject("roDateTime")
isoDate.FromISO8601String("2018-10-01T20:45:31Z")
print isoDate.ToISOString()
2018-10-01T20:45:31Z
FromISO8601String() doesn't return anything. It sets the date object to the specified date.