@manzar_ali wrote:
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
if(DateTime.TryParseExact(From, Valid_Date_Formats,System.Globalization.CultureInfo.InvariantCulture,System.Globalization.DateTimeStyles.None,DateTime_PlaceHolder))
Where From is the variable which holds the excel date and
Valid_Date_Formats has the date formats.How can I solve this?
Posts: 10
Participants: 2