Globalizing DateTime and Decimal in ASP.NET MVC Using ModelBinder

If you already develop an ASP.NET MVC application in your computer that has some specific culture, pt-BR in my case, and after you publish to a server that has a different one, Azure using en-US in my case, you will have some unexpected results when typing date and decimal values. In this post I will show how to have sure that your application will work as expected in any server. We will accept values corresponding to the culture chosen by the user.

Continuar lendo “Globalizing DateTime and Decimal in ASP.NET MVC Using ModelBinder”

Anúncios
Globalizing DateTime and Decimal in ASP.NET MVC Using ModelBinder