Search code examples
.netdatetimeformatculture

date format in asp.net versus in console application


I'm deploying a .NET applications to another machine.

in console application, the value of

DateTime.Today.ToLongDateString();

is

10 December 2009

while in web application the value is

23 ذو الحجة 1430 < equivalent in higri calendar

How does the web application get the culture from, and why is it different than the console application?


Solution

  • I got the answer! it was one of the registry records of the users of probably ASPNET or IIS. by using regedit, i found in one of the users international = arabic

    Thanks to: Change Default Locale in IIS 6.0