Quantcast
Viewing all articles
Browse latest Browse all 4397

DateTime Formatting issue while reading the Excel

@ashutoshkhantwal wrote:

Hi,

I have an excel which has a date time related column. When I read the excel the values are fetched in form of a string/double value having some random numbers like 43788.8488…

I tried to use FromOAdate for for matting the whole date column as well but then it gives an exception stating “input string was not in a correct format”.
The excel formatting is of the form as shown below.

dateChangeValue = DateTime.FromOADate(CDbl(row(“Verification Date”))) , this is how I have written the code.
I am iterating the same in a for each row.
Could anyone tell what is wrong in it?

Posts: 9

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4397

Trending Articles