Improve handling of date strings and DateTime values in contacts