added overload for ToDateTime that takes in a format provider