Assign System.DatetTime errors out after updating from legacy to .net5

string prints as
03/05/2024 00:00:00 and I’m trying to convert to system.datetime

this was working just fine for years until I updated to .net5
now getting error
Can not assign 'Datetime.ParseExact(in_TransactionItem(\"header\").ToString,“MM/dd/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture)' to 'Date_ExcelDate

and this is my assign
Datetime.ParseExact(in_TransactionItem("header").ToString,“MM/dd/yyyy HH:mm:ss”,System.Globalization.CultureInfo.InvariantCulture)

Datetime.ParseExact(in_TransactionItem("header").ToString,"MM/dd/yyyy HH:mm:ss",System.Globalization.CultureInfo.InvariantCulture)

We corrected the inverted doublequote

unreal
it’s an issue with “ instead of "

haaaaaaaaaa … I spent an hour trying to figure out what I’m doing wrong

thank you @ppr

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.