title: createdon field date-time format
body: <p>Compiling the following coe always get the same frustrating mistake. I'm trying to compare a "createdon" field to a the present date. I've tried several date format but stil not working...</p>
  
  <p>Error detail : "The date-time format for 23/05/2012 14:01:55 is invalid"</p>
  
  <p>Code snippet:</p>
  
  <pre><code>DateTime d = DateTime.Now;
                  String.Format("{0:dd/MM/YYYY HH:mm:ss}", d);
  
                  FetchExpression fetch = new FetchExpression(@"
                      &lt;fetch distinct='false' mapping='logical'&gt;
                        &lt;entity name='" + context.PrimaryEntityName + "'&gt;&lt;filter type='and'&gt;&lt;condition attribute='createdon' value='" + d + "' operator='ne'&gt;&lt;/condition&gt;&lt;/filter&gt;&lt;link-entity name='new_contrats' alias='nombreligne' from='new_contratsid' to='new_contratsid'&gt;&lt;filter type='and'&gt;&lt;condition attribute='new_contratsid' value='" + contrats.Id + "' operator='eq'&gt;&lt;/condition&gt;&lt;/filter&gt;&lt;/link-entity&gt;&lt;/entity&gt;&lt;/fetch&gt;");
  </code></pre>
  
  <p>Any help would be great !</p>