testing date on edit mode