btpoole
Channel Surfer

Change Date Order

How can I change the date from YY-MM-DD to MM-DD-YY. I know the sdk has some info concerning this but nothing showing the command (that I see).
Thanks
Tags (1)
0 Kudos
3 REPLIES 3
RokuMarkn
Visitor

Re: Change Date Order

Are you referring to roDateTime or something else?

--Mark
Tags (1)
0 Kudos
EnTerr
Roku Guru

Re: Change Date Order

Assuming date in raw string form:
BrightScript Debugger> dateStr = "2014-11-4"
BrightScript Debugger> arr = dateStr.tokenize("-")
BrightScript Debugger> mm_dd_yy = arr[1] + "/" + arr[2] + "/" + arr[0]
BrightScript Debugger> ? mm_dd_yy
11/4/2014
Tags (1)
0 Kudos
btpoole
Channel Surfer

Re: Change Date Order

Thank you EnTerr.

Mark,
I was referring to changing the order in which a date is returned from a parse of of a file.
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!