-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
Cell A1 = cells.get("A1");
A1.setValue("2021-01-02 23:59:59");
Cell B1 = cells.get("B1");
B1.setValue("2021-01-02 00:00:00");
String formula = "=DAYS(A1,B1)";
Cell C1 = cells.get("C1");
C1.setFormula(formula);
wb.calculateFormula(true);
System.out.println(C1.getValue());
计算结果为:1
而实际结果应该为:0
Metadata
Metadata
Assignees
Labels
No labels