code: def next_datetime(min_year = None, max_year = None):
          
          date = RandomDateTime.next_date(min_year, max_year).date()
          time = RandomDateTime.next_time()
          return datetime.datetime.combine(date, time)
docs: Generates a random Date and time in the range ['minYear', 'maxYear'].
          This method generate dates without time (or time set to 00:00:00)
  
          :param min_year: (optional) minimum range value
  
          :param max_year: max range value
  
          :return: a random Date and time value.