Hi All,
I am reading a DataTable from excel and I am removing the Time stamp from my Date .For that I am using
However getting error

Hi All,
I am reading a DataTable from excel and I am removing the Time stamp from my Date .For that I am using
However getting error

Please retype double quotes
DateTime.ParseExact(CurrentRow("StartDate").ToString,"MM/dd/yyyy hh:mm:ss",System.Globalization.CultureInfo.InvariantCulture).ToString("MM/dd/yyyy")
or
Input:

Regards,
Please retype the double quotes. And give the below syntax:
DateTime.ParseExact(CurrentRow("StartDate").ToString,"MM/dd/yyyy HH:mm:ss",System.Globalization.CultureInfo.InvariantCulture).ToString("dd/MM/yyyy")
Regards
Retype the double quotes and use System.Globalization.CultureInfo.InvariantCulture
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.