title: use C# to output date and time to XML file
body: <p>I am writing a program in c# that serializes objects to XML</p>
  
  <p>I am having trouble with the date and time fields, they do not produce the following output in XML:</p>
  
  <pre><code>2014-05-13T00:00:00
  0000000T18:35:00
  </code></pre>
  
  <p>I have declared the fields as following in my program:</p>
  
  <pre><code>public DateTime startDate
  public DateTime startTime
  </code></pre>
  
  <p>Can anyone help so that the date is correctly outputted to XML file?</p>
  
  <p>Thank you</p>