date format in asp.net versus in console application

后端 未结 5 1765
栀梦
栀梦 2021-01-21 13:44

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

in console application, the value of

DateTime.Today.ToLongDateString();

is

5条回答
  •  [愿得一人]
    2021-01-21 14:29

    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

提交回复
热议问题