c# – Converting a String to DateTime – Stack Overflow

CultureInfo provider = new CultureInfo(“en-GB”); DateTime.Parse(value, provider, DateTimeStyles.NoCurrentDateDefault);); Value: string representation of date and time. Provider: object which provides culture specific info. Styles: formatting options that customize string parsing for some date and time parsing methods.

Read More