def subtract_date_from_date(date1, date2, result_format='number', exclude_millis=False, date1_format=None, date2_format=None):
 time = (Date(date1, date1_format) - Date(date2, date2_format))
 return time.convert(result_format, millis=is_falsy(exclude_millis))

def subtract_date_from_date ( date1 , date2 , result_format = 'number' , exclude_millis = False , date1_format = None , date2_format = None ) : time = ( Date ( date1 , date1_format ) - Date ( date2 , date2_format ) ) return time . convert ( result_format , millis = is_falsy ( exclude_millis ) )
subtracts date from another date and returns time between .