validates format date and times; gives user format