String was not recognized as a valid parse string to Datetime
<p>I know there are many related questions but this is something else.</p>

<blockquote>
  <p>ExceptionMessage":"String was not recognized as a valid DateTime.","ExceptionType":"System.FormatException","StackTrace":"   at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style)  at System.DateTime.ParseExact(String s, String format, IFormatProvider provider)</p>
</blockquote>

<p>my code</p>

<pre><code>string bornstring = request.BornDate;
var borndate = DateTime.ParseExact(bornstring, "dd.MM.yyyy", CultureInfo.InvariantCulture);
</code></pre>

<p>This does not work:</p>

<pre><code>string bornstring = request.BornDate;
</code></pre>

<p>but this works:</p>

<pre><code>string bornstring = "10.10.1959";
</code></pre>

<p>but i am 100% sure that request.BornDate is of type String and exactly the same. I put debugging point and checked in 100 times. no spaces or other characters. exactly the same
<a href="https://i.stack.imgur.com/pwL0V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pwL0V.png" alt="enter image description here"></a></p>