I need to parse string to DateTime. The string is always in the following format
\"10.10.2010\" That means dd.MM.yyyy, separated with dots.
I want to use Dat
try "ddMMyyy", without "- / ."
Brazil codec
public static bool IsDateTime(string txtDate) { DateTime tempDate; return DateTime.TryParseExact(txtDate,"dd/MM/yyyy", new CultureInfo("pt-BR"), DateTimeStyles.None, out tempDate); }