System.Convert.ToDateTime issue

T

Tim Cowan

Hi

I am using System.Convert.ToDateTime to convert a date from a DB to datetime
type. The only trouble is it works one way on my local computer and another
way on our production server.

Being located in Canada I get: 4/13/2005 for April 13 2005
Our production server also located in Canada about 40mins away: 13/4/2005
for April 13 2005.

The DateTime conversion fails because it does not recognise the 13th month!
Where on the server do I have to change the date time format/regional
settings.

Another twist is that I don't have hands on, only through Terminal Services
so I have to get the hosting company to change it.

I had them change it to Canada for Regional settings and the date time
format for Canada.

It is still formatting wrong. Is there anywhere else that we have to change
it? Do I need to reboot the server?

Tim Cowan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top