
为了提供Sam答案的含义的示例,如果您只想使用来创建日期值
AppendCellsRequest,则可以这样创建单元格:
CellData cell = new CellData();cell.setUserEnteredValue(new ExtendedValue().setNumberValue(42198.0));cell.setUserEnteredFormat( new CellFormat().setNumberFormat(new NumberFormat().setType("DATE")));这里的42198是1899年12月30日至2015年7月13日之间的天数。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)