Convert String taken from DataTable to DateTime Variable

Hi @tommaso.perina

Could you share the Excel with sample data.
I think you are getting the date into an variable said strAssignmentDate so it should not passed within double quotes.

DateTime.ParseExact(strAssignmentDate.ToString, "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture)’ to ‘dtimeAssignmentDate

Regards

1 Like