Shortdate
i want to insert selected date in database but there is error occur "converting error nvarchar to date" and "sqltime overflow maxdatetime and mindatetime". i want to insert only date not time so pls help me how to convert string into date.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Suraj SahooRank #382 · 6.6K reputationPosted Mar 14, 2015, 11:41 PM EDT
You can follow the below link for an handy article which will be helpful in many ways.
http://www.codeproject.com/Articles/14743/Easy-String-to-DateTime-DateTime-to-String-and-For
Accept if helps anyway.
Thanks
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 15, 2015, 8:28 PM EDT
Can you please share, what code you are writing for inserting date?