deal with date field