Hi
It Was resolved in Cumulative Update Roll up 9, Please see the below for the changes
+------------------------------------------------------------------------------+
| OBJECT Table 370 Excel Buffer |
+------------------------------------------------------------------------------+
---------- Before (BEFORE) ---------- Table 370 ---------- Function ParseCellValue
LOCAL PROCEDURE ParseCellValue@40(Value@1000 : Text;FormatString@1001 : Text);
VAR
DateTime@1002 : DateTime;
Decimal@1004 : Decimal;
BEGIN
---------- After (AFTER) ------------------------------------------------------
LOCAL PROCEDURE ParseCellValue@40(Value@1000 : Text;FormatString@1001 : Text);
VAR
DotNetDateTime@1006 : DotNet "'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.DateTime";
DateTime@1002 : DateTime;
Decimal@1004 : Decimal;
BEGIN
--------------------------------------------------------------------------------
---------- Before (BEFORE) ---------- Table 370 ---------- Function ParseCellValue
// Excel Date is stored in OATime format
// Decimal integral component is number of days since 30-12-1899
// See: msdn.microsoft.com/.../system.datetime.tooadate.aspx
// FromOADate can't be used because it is utc dependent
DateTime := CREATEDATETIME(DMY2DATE(30,12,1899) + ROUND(Decimal),0T);
"Cell Type" := "Cell Type"::Date;
"Cell Value as Text" := FORMAT(DT2DATE(DateTime));
EXIT;
---------- After (AFTER) ------------------------------------------------------
// Excel Date is stored in OATime format
// Decimal integral component is number of days since 30-12-1899
// See: msdn.microsoft.com/.../system.datetime.tooadate.aspx
DotNetDateTime := DotNetDateTime.FromOADate(Decimal);
// Convert it as it was parsed in UTC and not localtime as we would expect.
DateTime := DotNetDateTime.ToLocalTime();
"Cell Type" := "Cell Type"::Date;
"Cell Value as Text" := FORMAT(DT2DATE(DateTime));
EXIT;
--------------------------------------------------------------------------------
Regards
Jatin Patel