date picker and sanitize