def wrapdate(taxis, dt, allfields=False):
    """ Returns a modified date dictionary such that all fields
  lie within standard values. """
    return taxis.val_as_date(taxis.date_as_val(dt), allfields=allfields)
