title: XMLSerializer not serializing DateTime
body: <p>Input...note that comment is generated code from the xsd tool. It's in a 31,834 line file and proprietary, but I put a rough approximation in here.</p>
  
  <pre><code>[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.1432")]
  [System.SerializableAttribute()]
  [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
  public class comment
  {
     private System.DateTime commentDateField;
     private bool commentDateFieldSpecified;
     [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
     public System.DateTime commentDate
     { 
        get 
        {
           return this.commentDateField;
        }
        set
        {
           this.commentDateField = value;
        }  
     }
     [System.Xml.Serialization.XmlIgnoreAttribute()]
     public bool commentDateSpecified
     { 
        get 
        {
           return this.commentDateFieldSpecified;
        }
        set
        {
           this.commentDateFieldSpecified = value;
        }  
     }
     //other fields omitted for clarity
  }
  comment c = new comment();
  c.text = txtComment.Text;
  c.commentDate = DateTime.Now;
  StringBuilder sb = new StringBuilder();
  StringWriter sw = new StringWriter(sb);
  XmlSerializer xs = new XmlSerializer(typeof(comment));
  xs.serialize(sw as TextWriter, c);
  string output = sb.ToString();
  </code></pre>
  
  <p>output-></p>
  
  <pre><code>&lt;comment&gt;
    &lt;text&gt;My Comment Text&lt;/text&gt;
  &lt;/comment&gt;
  </code></pre>
  
  <p>Where's the date?</p>