From: Glen Stampoultzis Date: Thu, 1 May 2003 23:38:39 +0000 (+0000) Subject: Fixed a small error in documentation X-Git-Tag: REL_2_0_PRE1~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13e10dc0074e81834e41b1ca2d6907ab44eaf3c6;p=poi.git Fixed a small error in documentation git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353077 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/hssf/quick-guide.xml b/src/documentation/content/xdocs/hssf/quick-guide.xml index b193a99fb7..b5203d2058 100644 --- a/src/documentation/content/xdocs/hssf/quick-guide.xml +++ b/src/documentation/content/xdocs/hssf/quick-guide.xml @@ -104,7 +104,7 @@ // create a new cell style from the workbook otherwise you can end up // modifying the built in style and effecting not only this cell but other cells. HSSFCellStyle cellStyle = wb.createCellStyle(); - cellStyle.setDataFormat(HSSFDataFormat.getFormat("m/d/yy h:mm")); + cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm")); cell = row.createCell((short)1); cell.setCellValue(new Date()); cell.setCellStyle(cellStyle); diff --git a/src/documentation/content/xdocs/trans/es/hssf/quick-guide.xml b/src/documentation/content/xdocs/trans/es/hssf/quick-guide.xml index 371f36072f..1d2aaf3ae4 100644 --- a/src/documentation/content/xdocs/trans/es/hssf/quick-guide.xml +++ b/src/documentation/content/xdocs/trans/es/hssf/quick-guide.xml @@ -96,7 +96,7 @@ // create a new cell style from the workbook otherwise you can end up // modifying the built in style and effecting not only this cell but other cells. HSSFCellStyle cellStyle = wb.createCellStyle(); - cellStyle.setDataFormat(HSSFDataFormat.getFormat("m/d/yy h:mm")); + cellStyle.setDataFormat(HSSFDataFormat.getBuiltinFormat("m/d/yy h:mm")); cell = row.createCell((short)1); cell.setCellValue(new Date()); cell.setCellStyle(cellStyle);