You may come across the need to change default date/time format in your ASP.NET application, for example when you want to host it on a server with different localization settings than in your application. This is a very simple and straightforward solution:

  • Open Web.config file in your project

  • Within system.web section add following code (changing the culture to the desired one):

      <globalization culture="pl-PL" uiCulture="pl-PL"/>

For detailed information about the globalization tag please refer to documentation at MSDN.