title: convert string with utc-datetime to datetime-Ojbect
body: <p>First of all I am new in C#.</p>
  <p>I have to convert a <code>string</code> like</p>
  <pre><code>  &quot;Fri, 30 Jul 2021 11:57:58 (UTC)&quot; 
  </code></pre>
  <p>into a <code>DateTime</code>. I've tried serveral <em>format strings</em> (like <code>&quot;ddd, dd MMM yyyy HH:mm:ss&quot;</code>, <code>&quot;r&quot;</code>, <code>&quot;R&quot;</code>). But I always get the <strong>error message</strong></p>
  <blockquote>
  <p>String was not recognized as a valid DateTime.</p>
  </blockquote>
  <p>Here is my last code for this:</p>
  <pre><code>CultureInfo enUS = new CultureInfo(&quot;en-US&quot;);
  string timeStampFormat = &quot;ddd, dd MMM yyyy HH:mm:ss&quot;;
  DateTime myDateTime;
  
  myDateTime = DateTime.ParseExact(
    stringToFormat, 
    timeStampFormat, 
    enUS, 
    DateTimeStyles.AssumeUniversal);
  </code></pre>
  <p>Thanks for your support.</p>
  <p>Best regards
  Andreas## Heading ##</p>