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.
Rajeesh MenothRank #118 · 18.4K reputationPosted Jan 10, 2019, 1:05 AM EST
Madan ShekarRank #428 · 5.9K reputationPosted Jan 10, 2019, 12:43 AM EST
1) use this assembly ref using System.Globalization;
Karan Thakkar186 reputationPosted Jan 14, 2019, 6:30 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts