I am trying to parse DateTime, with an exact format being accepted from client input.
Which one is better
bool success = DateTime.TryParseExact(value, "dd-MMM-yyyy",
DateTimeFormatInfo.InvariantInfo, DateTimeStyles.None, out dateTime);
OR
bool success = DateTime.TryParseExact(value, "dd-MMM-yyyy",
CultureInfo.InvariantCulture, DateTimeStyles.None, out dateTime);
Of course, this code is inside a common static method that is called wherever parsing of date is required.