title: Saving DateTimeField with mongoengine
body: <p>Using the Django framework (1.3.1), together with Mongoengine.</p>
  
  <p>When trying to save a posted field (the due date), it bails out with a </p>
  
  <blockquote>
    <p>ValidationError (cannot parse date "2013-12-31": ['DueDate'])</p>
  </blockquote>
  
  <p>However when saving the date via <code>datetime.datetime.now()</code> it works fine. After searching for examples, I'm out of options.</p>
  
  <p>The related parts of my code (with a normal HTML form using the text input tag):</p>
  
  <p>views.py</p>
  
  <pre><code>goal.DueDate = request.POST['duedate']
  goal.save()
  </code></pre>
  
  <p>models.py</p>
  
  <pre><code>class Goal(Document):
      DueDate = DateTimeField()
      last_update = DateTimeField(required=True)
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>Update (can't answer myself yet):</p>
  
  <p>Ok.. found the solution. Typing it, apparently gave new insights.</p>
  
  <blockquote>
    <p>goal.DueDate = datetime.datetime.strptime(request.POST['duedate'],
    '%Y-%m-%d')</p>
  </blockquote>