Click here to Skip to main content
15,880,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
I tried to convert in below format:

convert(datetime, '27/01/1710', 103).
Posted

1 solution

Datetime does not support years below 1750 AD. Try converting to date

SQL
SELECT convert(date, '27/01/1710', 103)
 
Share this answer
 
v2
Comments
aarif moh shaikh 17-Mar-15 1:50am    
good one...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900