Karan Thakkar

Karan Thakkar

  • 1.6k
  • 187
  • 4.7k

Date time error in c# while inserting data base?

Jan 14 2019 11:27 PM
It insert wrong date when I am retreving date from excel?
The date format is:05-01-2019
It insert  2019-05-01 (database) incorrect
correct date is=2019-01-05 
When date is greater than 12 it stores in correct format.
2019-12-25(database)correct 
Excel(25-12-2019) 
 

Answers (5)