Q: Date Parsing error when hosting in IIS i have the following date parsing in vb.net :
Dim SDate As Date = Format("yyyy-MM-dd", date1)

it's worked fine in development , but when i host the application in IIS .Net v(4.0) it give me the following: 
Conversion from string 2012-06-28 to type 'Date' is not valid.

.....  
i tried many forms of date parsing , all of them worked fine in Development 
but when I host them in IIS , it always give me error
thanks in advance,,,

A: Use one of the method -  Date.Parse, Date.TryParse, Date.ParseExact to parse string to date type.

A: I found great article about my problem 
http://lesession.blogspot.com/2008/07/wrong-date-format-on-your-iis-website.html
the solution was to put the following in web.config:
  <globalization culture="en-GB"/>

