renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2016
06:22 PM
AsDateString("short-date") bug?
I don't know what locale it's coming from, but I use AsDateString("short-date") in one of my games and I'm seeing strings like 2016/6/15 in my logs. Could it be coming from Canada? Either the documentation is incorrect (which shows only 2 character years for all locales) or there's a bug in the function.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
2 REPLIES 2


Roku Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2016
09:25 AM
Re: AsDateString("short-date") bug?
"renojim" wrote:
I don't know what locale it's coming from, but I use AsDateString("short-date") in one of my games and I'm seeing strings like 2016/6/15 in my logs. Could it be coming from Canada? Either the documentation is incorrect (which shows only 2 character years for all locales) or there's a bug in the function.
-JT
It's "by design" apparently...Canadian locale is indeed treated specially.
"YYYY/MM/dd = government standard in Canada".
We'll get the documentation fixed.
--KC
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2016
09:28 AM
Re: AsDateString("short-date") bug?
Thanks!
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.