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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Format 1

Status
Not open for further replies.

DanT07

Programmer
May 11, 2005
38
GB
Hi,

I have a form which is submitting the date in UK format, i.e dd/mm/yyyy. If i submit the form like this it comes up with the error:

"The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value"

And if i change the date on the form to mm/dd/yyyy it goes through and inserts into the db. However it inserts it into the db as dd/mm/yyyy.

Why is this happening and if its converting it why cant i insert it as dd/mm/yyyy in the first place. Its driving me nuts. Any help much appreciated.

Thanks,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top