title: Separate Datetime field to show Date and Time separate in HTML using Django
body: <p>I am using Python 3.6 and Django as web framework
  I have to save datetime together in my database but show date and time separate field in HTML.
  Model Code:</p>
  
  <pre><code>class date_time(models.Model):
      date = models.DateField(default=timezone.now)
      time = models.TimeField(default=timezone.now)
  </code></pre>
  
  <p>Form Code:</p>
  
  <pre><code>class date_time_Form(forms.ModelForm):
      class Meta:
          model = date_time
          fields = ('date', 'time',)
          widgets = {
              'date': forms.TextInput(attrs={'class': 'form-control', 'type': 'date'}),
              'time': forms.TextInput(attrs={'class': 'form-control', 'type': 'time'}),
          }
          labels = {
              'date': 'Date',
              'time': 'Time',
          }
  </code></pre>
  
  <p>Currently, I am storing in a separate field but I want to save in one field date+time.</p>
  
  <p>Update - 
  I can use Datetime field but that will create only one element in HTML page.
  <a href="https://i.stack.imgur.com/Lrewk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Lrewk.png" alt="When I use Datetime field"></a></p>
  
  <p>But in HTML I want separate fields like below with only one datetime field in model
  <a href="https://i.stack.imgur.com/LTd87.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LTd87.png" alt="Desired output"></a></p>
  
  <p>Is there any way to achieve this?</p>