Hi,
If I want to read a DateTime-Value i get a Value that is changed by -1 second by the displayed value.
Displayed-Value: 17.03.2009 00:00:00
Read-Value: 16.03.2009 23:59:59
XML-Value: 39888.999999942127
Code:
dt = Range.Worksheet.Cells.ExportArray(StartRow, StartColumn, EndRow, EndColumn)
How do i get the rounded displayed Value?
Hi,
Hi,
thanks for your reply.
The ExportDatatableAsString-method works fine. But we want to get a date-object.
Is there any solution for the exportArray-method?
The same problem occurs, if i use workbook.cells.item(0,0).Value.
Kind Regards,
Manuel Memenga
Hi,
milliseconds 995. In MS Excel, it will be rounded to the nearest second when the
formatting has no millisecond part. If you need the DateTime object, you should use exportArray method and do the correct formatting by yourself according
to your requirements.