Description
I'm trying to display a datetime using the users local settings. in iOS this is always returning a middle endian format
for example
Console.WriteLine(CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern);
prints out
M/d/yyyy
Reproduction Steps
Create a MAUI app that targets iOS
trigger
Console.WriteLine(CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern);
Expected behavior
The returned format should match the devices configuration and not default to US English
Actual behavior
M/d/yyyy
Looking at the LCID it's also reporting as 9
This applies to both CurrentCulture and CurrentUICulture
Regression?
No response
Known Workarounds
No response
Configuration
.Net 9
iOS 18.2
ARM64
Also an issue on older iOS platforms
It does work as expected on Android and Windows
Other information
No response