Page 1 of 1

Error reading month in Arabic culture

Posted: Fri Jun 10, 2022 4:16 am
by HSayed

When I set the language to ar-SA the orientation is set properly to the right side but there is a problem with the date field the month part is always read as zero from the database (Microsoft SQL server 2019).

you can produce the problem easily by adding Arabic language and generating a project for any database that has table with few records that has date field

Regards


Re: Error reading month in Arabic culture

Posted: Fri Jun 10, 2022 9:39 am
by MichaelG

The ICU date format for "ar-SA" is "d‏/M‏/y GGGGG", but C# does not understand "GGGGG", see Formatting Dates and Times, you can change it to "g" or "gg" and try again. See Locale Settings.