Title: Date format in hosting server
Tags: asp.net;iis-7;web-config
Question: in our search and business process in the site we depend on date format dd/mm/yyyy and time format HH:MM
but I discovered that the site and hosting server date format look like M/dd/yyyy H:MM PM/AM.
I tried to use the following in web.config to override that but I failed
```    <globalization
   requestEncoding=&quot;utf-8&quot;
   responseEncoding=&quot;utf-8&quot;
   culture=&quot;en-GB&quot;
   uiCulture=&quot;es&quot; /&gt;
```
any other ideas to solve that , I don't have access on the server to change the date , it's godaddy hosting

Comment: Try this http://stackoverflow.com/questions/2468312/setting-a-date-format-in-asp-net-web-config-globalization-tag


Here is another answer: Date and string conversions can be a long modification, and be a bit messy. Add the below to your web.config. Be careful not to add duplicate  globalization or  system.web tags.

```<system.web&gt;
<globalization  culture="en-NZ"  uiCulture="en-NZ"/&gt;
</system.web&gt;
```

Tested in ASP.NET 4.5 GoDaddy host and it works.


Here is another answer: You will not be able to overwrite any server settings with your web.config.  However, in your code you can format the datetime string that way.  You can see more on how to do this here: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx


Here is another answer: As Josh Harris mentions, add configuration in web config:
```<system.web&gt;
  <globalization  culture=&quot;es&quot;  uiCulture=&quot;es-MX&quot;/&gt;
</system.web&gt;
```
It worked for me for website hosting in goDaddy -


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 3, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2012:00:08/23/12', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<asp.net><iis-7><web-config>', 'Title': 'Date format in hosting server', 'ViewCount': 1162, 'id': 12083731, 'user_AboutMe': '', 'user_AccountId': 302613.0, 'user_DisplayName': 'Ali', 'user_Reputation': 1965.0, 'user_Views': 354.0, 'user_id': 611078.0}}