title: TryParse to a nullable type
body: <p>I would like to try to parse a <code>string</code> as a <code>DateTime?</code>, and if it fails then set the value to <code>null</code>. The only way I can think to do this is the following, but it doesn't seem very neat.</p>
  
  <pre><code>DateTime temp;
  DateTime? whatIActuallyWant = null;
  if (DateTime.TryParse(txtDate.Text, out temp)) whatIActuallyWant = temp;
  </code></pre>
  
  <p>Is this the only way?</p>