edit date helper