FormatDate Class
- public class FormatDate
extends FormatTag
A formatter used to format dates. This formatter uses patterns that conform to
java.text.SimpleDateFormat
pattern syntax. Valid types for formatting are:
- String
- java.sql.Date
- java.util.Date
- java.util.Calendar
If the type is a String, we attempt to create a date out of the String. The
String must be defined by a common format list below. If the string is
equal the the empty string, it will be returned as the empty string. See
java.text.SimpleDateFormat for more information.
The valid formats are:
- MM/dd/yy
- yyyy-MM-dd
- MMddyy
- and the local default
Attribute Descriptions |
Attribute | Required | Runtime Expression Evaluation | Data Bindable |
country | No | No | No |
The country code used to determine the locale. |
language | No | No | No |
The language code used to determine the locale. |
pattern | No | No | Read Only |
The SimpleDateFormat pattern used to format this date. |
stringInputPattern | No | No | Read Only |
The pattern used to convert a String value into a date. |
Related Topics
<netui:format...> Tag Samples
FormatNumber
FormatString
SimpleDateFormat
-
Hierarchy
-
Object
TagSupport
BodyTagSupport
AbstractBaseTag
FormatTag
FormatDate
-
All Implemented Interfaces
-
BodyTag
, IterationTag
, Serializable
, Tag
Fields from com.bea.wlw.netui.tags.AbstractBaseTag |
ATTR_GENERAL , ATTR_GENERAL_EXPRESSION , ATTR_JAVASCRIPT , ATTR_STYLE , CLASS , ID , JAVASCRIPT_STATUS , NAME , NETUI_UNIQUE_CNT , ONCLICK , ONDBLCLICK , ONKEYDOWN , ONKEYPRESS , ONKEYUP , ONMOUSEDOWN , ONMOUSEMOVE , ONMOUSEOUT , ONMOUSEOVER , ONMOUSEUP , STYLE , TABINDEX
|
Methods from com.bea.wlw.netui.tags.AbstractBaseTag |
addTagIdMapping , evaluateAttributeToString , filter , filter , getJavaScriptUtils , getNearestForm , getScriptReporter , getUserLocale , localRelease , registerTagError , release , renderAttribute , rewriteName , write
|
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatDate
public FormatDate()
doStartTag() Method
public int doStartTag()
throws JspException
Create the internal Formatter instance and perform the formatting.
-
Overrides
-
FormatTag.doStartTag()
Exceptions
-
JspException
- if a JSP exception has occurred
getStringInputPattern() Method
public String
getStringInputPattern()
getTagName() Method
public String
getTagName()
Return the name of the Tag.
-
Overrides
-
AbstractBaseTag.getTagName()
localRelease() Method
protected void localRelease()
Release any acquired resources.
-
Overrides
-
FormatTag.localRelease()
setStringInputPattern(String) Method
public void setStringInputPattern(String
pattern)
Set the pattern to use to convert a String value into a date. This
will be used before the common formats.
Parameters
-
pattern
- the pattern representing the string input