title: Getting only date from DateTimeField in django
body: <p>I am trying to create a dailylog to my company, so I used dynamic function <code>DateTimeField</code> to get the time and date of my location.</p>
  
  <p>From this I need to write validations using date obtained in DateTimeField,
  can anyone help me in getting the "date" from the output?</p>
  
  <p>Thank you for the support in advance.</p>
  
  <p><strong>Forms.py</strong></p>
  
  <pre><code>class employeecheckinform(forms.ModelForm): 
      class Meta: 
          model = Checkin 
          fields=[ 'user', 'employee_ID', 'checkin', ] 
  
  class employeecheckoutform(forms.ModelForm): 
      class Meta: 
          model = Checkout 
          fields=[ 'user', 'employee_ID', 'checkout',]
  </code></pre>
  
  <p><strong>Models.py</strong></p>
  
  <pre><code>class Checkin(models.Model): 
      user = models.ForeignKey(User,on_delete = models.CASCADE ) 
      employee_ID = models.ForeignKey(EmployeeDetails,on_delete = models.CASCADE) 
      checkin = models.DateTimeField(default = timezone.now) 
      checkin1 = datetime.datetime.today()
  </code></pre>