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: 
renojim
Level 10

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
0 Kudos
2 Replies
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
Level 10

Re: AsDateString("short-date") bug?

Thanks!
0 Kudos