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

varchar to datetime

Status
Not open for further replies.

Bell1991

Programmer
Aug 20, 2003
386
0
0
US
I have a column that is a varchar and i need to convert it to datetime and insert it into a table.

I have:
Code:
Insert into tblA (dtDate)
Select cast(dtEmployeeDate as datetime) from tblB

I am getting the follwoing error:

The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.


any suggestions

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top