editing date field