This block in Android put the week number day right. But in iOS put the year. For ISO standard.
This claim makes no sense to me. Both the Java DateTimeFormatter and the Swift DateFormatter (which uses the Unicode assigned values) reserve 'u' for year.
If you want the day of the week as a number, then you probably want to use 'e'.
The problem is generated for this AI2 documentation about "SimpelDateFormat":
Here says that the pattern for a Week Day Number is "u": And "E" is for a Week Day Name.
https://developer.android.com/reference/java/text/SimpleDateFormat
Unfortunately I don't think there is an easy way to fix this due to the fragmentation on the Android side since older devices won't even support "u" never mind "e". Here are blocks that you could use as a workaround:
Hmm. I do have another thought that we could solve it by adding a new block specifically to get the day of the week rather than relying on the format string (which just gets passed to the underlying datetime layer). This would allow us finer control based on platform and specific versions within that platform.
Yes. I had solved with this blocks to have the EU notation for a Week Number Days (Monday is 1, not 2):
I only report to help you correct the AI2-Documentation.
Note: My app is only for CAT users.
Interesting... if I recall correctly these methods should be working on Calendar objects and therefore ought to be aware of the user's system locale, such as the starting day of the week. I'll have to poke around a bit.
This is defined by the Java development kit and not App Inventor.