      >>> experiment.start_year
      2015
      >>> # How many experiments completed in the same year in which they started?
      >>> Experiment.objects.filter(
      ...    start_time__year=Extract('end_time', 'year')).count()
      1
  
  ``DateField`` extracts
  ~~~~~~~~~~~~~~~~~~~~~~
  
 
</s> remove     ...    start_year=Extract('start_time', 'year')).get()
 </s> add     ...    start_year=Extract('start_datetime', 'year')).get() </s> remove     ...    start_time=start, start_date=start.date(),
    ...    end_time=end, end_date=end.date())
 </s> add     ...    start_datetime=start, start_date=start.date(),
    ...    end_datetime=end, end_date=end.date()) </s> remove     ...     print(exp.start_time)
 </s> add     ...     print(exp.start_datetime) </s> remove     ...    start_day=Trunc('start_time', 'day', output_field=DateTimeField())
 </s> add     ...    start_day=Trunc('start_datetime', 'day', output_field=DateTimeField()) </s> remove     ...    month=TruncMonth('start_time', tzinfo=melb)).values('month').annotate(
 </s> add     ...    month=TruncMonth('start_datetime', tzinfo=melb)).values('month').annotate(
    ...    start_datetime__year=Extract('end_datetime', 'year')).count()
      >>> experiment.start_year
      2015
      >>> # How many experiments completed in the same year in which they started?
      >>> Experiment.objects.filter(
    ...    start_datetime__year=Extract('end_datetime', 'year')).count()
      1
  
  ``DateField`` extracts
  ~~~~~~~~~~~~~~~~~~~~~~
  
keep keep keep keep replace keep keep keep keep keep
 Refs #25774 -- Adjusted datetime database function docs field names. 
docs/ref/models/database-functions.txt