SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
DateTime.TryParseExact(txtStartDate.Text, formats, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out startDate)