org.apache.struts2.util
Class DateFormatter

java.lang.Object
  extended by org.apache.struts2.util.DateFormatter

public class DateFormatter
extends java.lang.Object

A bean that can be used to format dates


Constructor Summary
DateFormatter()
           
 
Method Summary
 java.util.Date getDate()
           
 java.lang.String getFormattedDate()
           
 void setDate(java.util.Date date)
           
 void setDate(int date)
           
 void setDate(java.lang.String date)
           
 void setFormat(java.text.DateFormat format)
           
 void setFormat(java.lang.String format)
           
 void setParseFormat(java.lang.String format)
           
 void setParser(java.text.DateFormat parser)
           
 void setTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatter

public DateFormatter()
Method Detail

setDate

public void setDate(java.lang.String date)

setDate

public void setDate(java.util.Date date)

setDate

public void setDate(int date)

getDate

public java.util.Date getDate()

setFormat

public void setFormat(java.lang.String format)

setFormat

public void setFormat(java.text.DateFormat format)

getFormattedDate

public java.lang.String getFormattedDate()

setParseFormat

public void setParseFormat(java.lang.String format)

setParser

public void setParser(java.text.DateFormat parser)

setTime

public void setTime(long time)


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.