I need to identify if a string is a date in format dd.mm.yyyy
.
However the application is running on systems with different language settings. Thus using isDate
or TryParse
on a 'valid' string returns true on a german system (since those functions use CultureInfo.CurrentCulture
) and return false on a system with i.e. english system settings.
Is there a function that checks if a string is a valid date with respect to a specified CultureInfo?
Of course i can always use regex to verify this, but i can't imagine that this is necessary.