I am retrieving data from excel and storing into a table in database where data type is date time.
Format of date in excel is :25-12-2018
Error:Input string is not in correct format.
If date comes in this format : 10/23/2018
Then no error.
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.
Rajeesh MenothPosted Jan 10, 2019, 6:05 AM
Karan ThakkarPosted Jan 14, 2019, 11:30 PM
Madan ShekarPosted Jan 10, 2019, 5:43 AM
1) use this assembly ref using System.Globalization;