I am trying a more efficient way to write this datetime function shown here, so that it can still give a correct date whether the datetime is in 24 ho ...
I am trying a more efficient way to write this datetime function shown here, so that it can still give a correct date whether the datetime is in 24 ho ...
I have the following function: I test this with the following unittest: This runs fine on my local development machine, but when I push changes ...
Does CultureInfo.CurrentCulture.Name always return the language code and country/region code separated by a hyphen? I have been told that CultureInfo. ...
My converter is the following When I enter a number Next entered the separator When I enter the decimal ends as 55 In the view before ...
I am having a weird scenario where DateTime.TryParse(..) is returning different results with a custom culture (en-US) between two different laptops fo ...
I have to write my question in other words. I'm developing my own geometric primitive structs for some reasons: Point and Size: Now I need to writ ...
Prior to recent Windows 11 Update when I had code that was DateTime.Now.ToString("MMM dd yyyy") the output would be "Jul 12 2022" but recently it has ...
I have a strange translation issue with an ASP.net application running on netcore 3.1, where around 20 minutes after deployment, a resource string onl ...
When I run the code below, I can create two valid cultures that are not returned in CultureInfo.GetCultures(CultureTypes.AllCultures). Why is this the ...
I've got a very strange problem. My C# interactive gives me: However, in the debugger, the same expression yields something else: Does anybody h ...
I'm trying to guess which country a BCP-47 code belongs to. I'm aware that this would provide a list of multiple countries. Nevertheless, I would like ...
I have a class like this: and a List of this Item, like this: I know that there's some exception-handling missing here, but for the purpose of k ...
I am trying to make my project multilingual. To do this, I created resource files for English and for other languages, for example: langu.resx langu. ...
I'm working with a piece of .Net Core 6 library (dll), in which, amongst other functionality, numbers and date/time information is outputted as string ...
I am working on a MVC project that will have its pages in English, Spanish, and Hmong using CultureInfo. I am unsure what language code I should use f ...
We have an integration partner who insists on sending us datetimes as strings in the format yyyyMMdd:Hmm, e.g., "20211029:102". Note that the hour doe ...
I am trying to make my WPF app support two languages.. but I'm facing an issue when trying to bind DataTime DP to a TextBlock inside a UserControl and ...
I'm trying to have all error messages and reponses in an ASP.Net application in the english language. This is what I tried (at the beginning of the Co ...
I want to set list cultureinfo in startup from database with query , please help me , how can i do that? My Query My Code in Startup i want to ...
Could you have a look at my sample? This result produces from the following example: Because the language of the program is Turkish. I would lik ...