fixing date field