org.appfuse.webapp.taglib
Class FormattedDate
java.lang.Object
java.util.Date
org.appfuse.webapp.taglib.FormattedDate
- All Implemented Interfaces:
- Cloneable, Comparable, Serializable
- public class FormattedDate
- extends Date
This class is a subclass of Date in order to format
the Date for rendering on the UI.
- Version:
- $Revision: 1.1 $ $Date: 2004/03/31 13:04:29 $
- Author:
- Matt Raible
- See Also:
- Serialized Form
| Methods inherited from class java.util.Date |
after, before, clone, compareTo, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC |
FormattedDate
public FormattedDate()
toString
public final String toString()
- Override Date's toString() method to format it with a
specified date pattern.
- Returns:
- a formatted string
getMask
public final String getMask()
- Returns the mask.
- Returns:
- String
setMask
public final void setMask(String mask)
- Sets the mask.
- Parameters:
mask - The mask to set
Copyright © 2002-2004