Adapt visit_date type from string to datetime
This follows the latest loader changes.
Related to T2310