I have a asp.net textbox for date input, I use regular expression to let the user input date in dd-mm-yyyy format but when i convert the input date in datetime object, the month and day values are interchanged.
How can a specify the right way for interpreting this input date?
I have a asp.net textbox for date input, I use regular expression to let
Share
You can use DateTime.ParseExact