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
Why not use ParseExact instead?
ParseExact
var theDate = DateTime.ParseExact("dd.MM.yyyy", yourDateString, CultureInfo.InvariantCulture);