asp.net and sql server app
I am capturing DOB in UK format (see code)
I have registration page that needs DOB - code below works fine on local pc but on test server I need to enter USA dateformat to get it working.
What am I doing wrong?
I need to ensure that dob is UK format.
OR should I convert DOB format just to user when displayed?
customer.DOB = DateTime.ParseExact(dateOfBirth.Text, "dd-MM-yyyy", CultureInfo.InvariantCulture);