Sqldatetime overflow exception
SQL DATETIME OVERFLOW EXCEPTION?
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend4days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 5, 2013, 2:56 AM EDT
MANEESH AN110 reputationPosted Jul 5, 2013, 3:01 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 3:04 AM EDT
The SQL Datetime range is 1/1/1753 12:00:00 AM to 12/31/9999 11:59:59 PM
You can validate datetime before inserting into db as like below
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 5, 2013, 3:14 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 5, 2013, 3:34 AM EDT
Regards,
Iftikar