title: convert Datetime to simple Date
body: <p>I am having trouble converting a variable that's in String format (from a DateTime selector control on a form) to simple Date.</p>
  
  <p>I am trying the conversion because I am getting the below error message:</p>
  
  <blockquote>
    <p>INVALID_FIELD: \nAND c.Status__c = 'Closed' AND c.Close_Date__c >
    2013-07-01T00:00:00Z\n   ^\nERROR at Row:1:Column:326\nvalue of filter
    criterion for field 'Close_Date__c' must be of type date and should
    not be enclosed in quotes</p>
  </blockquote>
  
  <p>I tried:</p>
  
  <pre><code>sQry += " AND c.Close_Date__c &gt; " + DateTime.ParseExact(filterFromDate, "d", CultureInfo.InvariantCulture) + " AND c.Close_Date__c &lt; " + DateTime.ParseExact(filterFromDate, "d", CultureInfo.InvariantCulture);
  </code></pre>
  
  <p>but it's not accepting it (compiler doesn't recognise <code>CultureInfo</code>.</p>
  
  <p>where am I going wrong please?</p>
  
  <p>MORE INFO:
  Sorry I should mention we're using this query against a SalesForce object referencing an instance of SalesForce</p>