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.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
renojim
Community Streaming Expert

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
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.
0 Kudos
2 REPLIES 2
RokuKC
Roku Employee
Roku Employee

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
0 Kudos
renojim
Community Streaming Expert

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.
0 Kudos