|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.report.xls.DateUtil
public class DateUtil
Contains methods for dealing with Excel dates.
| Method Summary | |
|---|---|
static double |
getExcelDate(java.util.Date date)
Given a Date, converts it into a double representing its internal Excel representation, which is the number of days since 1/1/1900. |
static java.util.Date |
getJavaDate(double date)
Given a excel date, converts it into a Date. |
static boolean |
isValidExcelDate(double value)
Given a double, checks if it is a valid Excel date. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double getExcelDate(java.util.Date date)
date - the Date
public static java.util.Date getJavaDate(double date)
date - the Excel Date
public static boolean isValidExcelDate(double value)
value - the double value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||