Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DateTime Problem

Status
Not open for further replies.

chronics

Programmer
Sep 10, 2006
35
GB
Hi

I have a Windows Forms single threaded application in which i have set the CurrentCulture and CurrentCultureUI to en-GB.

UK dates are input dd/mm/yy but for some reason my datatable that takes a datetime only accepts the us format of mm/dd/yy. I have even tried specifically setting the datatable locale and even my datetimepicker control outputs values in uk format but i keep getting a "string was not recognized as a valid datetime error"

Any help appreciated.
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top