Below is the image of my code please have a look on it.
I am trying to retrieve data from excel sheet and storing it into database table through SQL bulkcopy.
Error:
The date format is 05-01-2019
; it is inserted as 2019-05-01
(database) incorrectly - 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