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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 16, 2015, 12:28 AM
Can you please share, what code you are writing for inserting date?
Suraj SahooPosted Mar 15, 2015, 3:41 AM
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