Change the format of the variable into DateTime

Hello,

What is my case.
I read from Excel File a cell. The value is 08-Jun-19
Capture
I have to choose Double type of output variable otherwise I have an

  • if I choose String - 'errorRead Cell Ship Date: StringConverter cannot convert from System.Double.
  • if I choose DateTime - ‘errorRead Cell Ship Date: DateTimeConverter cannot convert from System.Double.’
    So when I choose Double as a type them this is my value 43624

I have to somehow convert this variable to at the end receive the value 06/08/2019
Any help?

Hi @niteckam

Check the screen below

Hope this helps

Thanks

Hi,

DateTime.FromOADate(43624).ToString(“dd/MM/yyyy”)

replace 43624 with respective variable

3 Likes

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