FAQ added

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352884 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2002-10-08 23:14:45 +00:00
parent 73adb1b05b
commit 3dc6a403e9

View File

@ -67,20 +67,20 @@
<source> <source>
case HSSFCell.CELL_TYPE_NUMERIC: case HSSFCell.CELL_TYPE_NUMERIC:
double d = cell.getNumericCellValue(); double d = cell.getNumericCellValue();
// test if a date! // test if a date!
if (HSSFDateUtil.isCellDateFormatted(cell)) { if (HSSFDateUtil.isCellDateFormatted(cell)) {
// format in form of M/D/YY // format in form of M/D/YY
cal.setTime(HSSFDateUtil.getJavaDate(d)); cal.setTime(HSSFDateUtil.getJavaDate(d));
cellText = cellText =
(String.valueOf(cal.get(Calendar.YEAR))).substring(2); (String.valueOf(cal.get(Calendar.YEAR))).substring(2);
cellText = cal.get(Calendar.MONTH)+1 + "/" + cellText = cal.get(Calendar.MONTH)+1 + "/" +
cal.get(Calendar.DAY_OF_MONTH) + "/" + cal.get(Calendar.DAY_OF_MONTH) + "/" +
cellText; cellText;
} }
</source> </source>
</answer> </answer>
</faq> </faq>
<faq> <faq>
@ -190,4 +190,13 @@
Make sure you make the call to setEncoding() before calling setCellValue(), otherwise what you pass in won't be interpreted properly. Make sure you make the call to setEncoding() before calling setCellValue(), otherwise what you pass in won't be interpreted properly.
</answer> </answer>
</faq> </faq>
<faq>
<question>
I'm having trouble creating a spreadsheet using POI using
websphere 3.5.
</question>
<answer>
Make sure you have fix pack 4 installed.
</answer>
</faq>
</faqs> </faqs>