sanitize_date helper