// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().get(0); IRange a1 = worksheet.getRange("A1"); //Java 8 introduces a new package java.time which contains lots of new date/time types and sub-packages to support JSR310. //Document Solutions for Excel can handle these new types when working with Java 8 or upper. a1.setValue(java.time.LocalDateTime.now()); java.time.LocalDateTime java8Date = (java.time.LocalDateTime)a1.getValue(); a1.setNumberFormat("m/d/yyyy h:mm"); a1.setColumnWidth(20); // Save to an excel file workbook.save("SetJava8DateValue.xlsx");