I am trying to read the date from excel and store it in a variable by checking the format using Datetime.TryParseExact.
But it fails PFAS
I am using this condition to check
Where From is the variable which holds the excel date and
Valid_Date_Formats has the date formats.
How can I solve this?