xl.write
Class DateFormat

System.Object
  extended byxl.biff.RecordData
      extended byxl.biff.WritableRecordData
          extended byxl.biff.FormatRecord
              extended byxl.write.biff.DateFormatRecord
                  extended byxl.write.DateFormat
All Implemented Interfaces:
xl.biff.ByteData, xl.biff.DisplayFormat, Format

public class DateFormat
extends xl.write.biff.DateFormatRecord
implements xl.biff.DisplayFormat

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 Excel API 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


Field Summary
 
Fields inherited from class xl.biff.FormatRecord
biff7, biff8, logger
 
Constructor Summary
DateFormat(System.String format)
          Constructor.
 
Methods inherited from class xl.biff.FormatRecord
equals, getData, getDateFormat, getFormatIndex, getFormatString, getIndexCode, getNumberFormat, hashCode, initialize, isBuiltIn, isDate, isInitialized, isNumber
 
Methods inherited from class xl.biff.WritableRecordData
getBytes
 
Methods inherited from class System.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface xl.biff.DisplayFormat
getFormatIndex, initialize, isBuiltIn, isInitialized
 

Constructor Detail

DateFormat

public DateFormat(System.String format)
Constructor. The date format that is passed should comply to the standard .NET date formatting conventions

Parameters:
format - the date format