Parse and TryParse with culture info

suggest change

You might want to use it when parsing DateTimes from different cultures (languages), following example parses Dutch date.

DateTime dateResult;
var dutchDateString = "31 oktober 1999 04:20";
var dutchCulture = CultureInfo.CreateSpecificCulture("nl-NL");
DateTime.TryParse(dutchDateString, dutchCulture, styles, out dateResult);
// output {31/10/1999 04:20:00}

Example of Parse:

DateTime.Parse(dutchDateString, dutchCulture)
// output {31/10/1999 04:20:00}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents