XL读取Excel日期时间多出了8个小时. Cell c = rs.getCell(j, i); if (c.getType() == CellType.DATE) {//手动填写模板文件时为 date 类型,其他情况有可能不是date类型 DateCell dc = (DateCell) c; Date date = dc.getDate();
效果图 Private Sub DTPicker1_Click() ActiveCell.Value = DTPicker1.Value DTPicker1.Visible = False End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) Then ' Me.DTPicker1.Left = ActiveCell.Left + ActiveCell.ColumnWidth + 65 Me.DTPicker1.