What "neutral culture" breaks DateTime.TryParse()?

Viewed 140

I have the following code snippet

DateTime date1;
CultureInfo neutralCulture = new CultureInfo("fr");
bool isNeutral = neutralCulture.IsNeutralCulture; // True

DateTime.TryParse("not a date", neutralCulture, DateTimeStyles.AdjustToUniversal, out date1);

Which executes without throwing an exception, however, the documentation states

NotSupportedException: provider is a neutral culture and cannot be used in a parsing operation.

"fr" is a neutral culture, as demonstrated by the property on the CultureInfo object above, so I would expect this code to break.

What "neutral culture" breaks this method - is this documented anywhere?

1 Answers
Related