jxl.write
public class: DateFormat [javadoc |
source]
java.lang.Object
jxl.biff.RecordData
jxl.biff.WritableRecordData
jxl.biff.FormatRecord
jxl.write.biff.DateFormatRecord
jxl.write.DateFormat
All Implemented Interfaces:
DisplayFormat, Format, ByteData
A custom user defined number format which may be instantiated within user
applications in order to present date and time values in the appropriate
format.
The string format used to create a DateFormat adheres to the standard
java specification, and JExcelApi makes the necessary modifications so
that it is rendered as its nearest equivalent in Excel.
Once created, this may be used within a CellFormat object, which in turn
is a parameter passed to the constructor of the DateTime cell
| Constructor: |
public DateFormat(String format) {
super(format);
// Verify that the format is valid
SimpleDateFormat df = new SimpleDateFormat(format);
}
Constructor. The date format that is passed should comply to the standard
Java date formatting conventions Parameters:
format - the date format
|
| Methods from jxl.biff.FormatRecord: |
|---|
|
equals, getData, getDateFormat, getFormatIndex, getFormatString, getIndexCode, getNumberFormat, hashCode, initialize, isBuiltIn, isDate, isInitialized, isNumber, replace, setFormatString |