Error reading month in Arabic culture

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
HSayed
User
Posts: 2

Error reading month in Arabic culture

Post 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


MichaelG
User
Posts: 1095

Post 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.


Post Reply