title: django records greater than particular date
body: <pre><code>class sales_line(models.Model):
       sales_id = models.CharField(max_length=200)
       item = models.CharField(max_length=200)
       qty =   models.IntegerField()
       expected_end_date = models.DateField()
  
      def __unicode__(self):
           return self.sales_id
  </code></pre>
  
  <p>expected end date may be 'march 20,  2014' , 'april 29 2014' and so on,
  how do i get all the records whose expected end date has crossed the current date</p>
  
  <p>i have tried this : </p>
  
  <pre><code>current_date = time.strftime("%Y-%d-%m")
  
  sales_line.objects.filter(expected_end_date__gt = current_date)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>sales_line.objects.filter(expected_end_date__lt = current_date)
  </code></pre>
  
  <p>I am getting wrong data. where am i wrong???</p>