Yvon Steinthal Active Member Licensed User Longtime User Jun 7, 2016 #1 Hello, I am using DateUtils and AnotherDatePicker classes to make a calendar, and everything is working perfectly. However i am trying to specify the language for the months and days... From what i understand its using the device language as a default... Anyway i can change that ? Without having to change the device language that would be....bad... I have user settings that need to be respected... Thanks! Y.
Hello, I am using DateUtils and AnotherDatePicker classes to make a calendar, and everything is working perfectly. However i am trying to specify the language for the months and days... From what i understand its using the device language as a default... Anyway i can change that ? Without having to change the device language that would be....bad... I have user settings that need to be respected... Thanks! Y.
Erel B4X founder Staff member Licensed User Longtime User Jun 8, 2016 #2 You can set them to any strings you like. They are set in this line: B4X: monthsNames = DateUtils.GetMonthsNames Upvote 0
You can set them to any strings you like. They are set in this line: B4X: monthsNames = DateUtils.GetMonthsNames
Yvon Steinthal Active Member Licensed User Longtime User Jun 8, 2016 #3 In other words i have to manually reset them to my desired string, no way to auto populate to a specific language ? Upvote 0
In other words i have to manually reset them to my desired string, no way to auto populate to a specific language ?
Erel B4X founder Staff member Licensed User Longtime User Jun 9, 2016 #4 No. DateTime returns the names based on the device default locale. Upvote 0
Yvon Steinthal Active Member Licensed User Longtime User Jun 9, 2016 #5 Thank You Erel. I manually made two lists of month names and day names and it works fine. Upvote 0