The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
this problem in asp.net please help me for solve
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 13, 2016, 10:20 PM EDT
Nilesh SawardekarRank #648 · 3.7K reputationPosted Jul 13, 2016, 10:06 AM EDT
The problem is with the time zone setting. Specify in other formats like mm/dd/yyyy (usually works).
Specifying the date as 30/12/2013 resulted in the error for me. However, specifying it as mm/dd/yyyy format worked.
If you need to convert your input the you can try looking into the
CONVERTmethod. Syntax isCONVERT(VARCHAR,@your_date_Value,103) CONVERT(VARCHAR, '12/30/2013', 103)The finishing 103 is the datetime format.
Refer this link for conversion formats and further reading.http://www.w3schools.com/sql/func_convert.asp
Bharathi RajaRank #1,778 · 842 reputationPosted Jan 31, 2018, 12:12 AM EST