org.mmbase.applications.vprowizards.spring.util
Class DateTime
java.lang.Object
org.mmbase.applications.vprowizards.spring.util.DateTime
public class DateTime
- extends Object
- Author:
- ebunders
this class is a bean for storing a date and a time.
They are separate becouse you may want to use different input fields in the
html form.
You can set the date formate for date and time separetely. default is: dd-MM-yyyy HH:mm:ss
DateTime
public DateTime()
getDate
public String getDate()
setDate
public void setDate(String date)
getTime
public String getTime()
setTime
public void setTime(String time)
getParsedDate
public Date getParsedDate()
throws ParseException
- Throws:
ParseException
getDateInSeconds
public long getDateInSeconds()
throws ParseException
- Throws:
ParseException
toString
public String toString()
- Overrides:
toString in class Object
setDateFormat
public void setDateFormat(String dateFormat)
- override the date format string. a new dateformat object is created
- Parameters:
dateFormat -
setTimeFormat
public void setTimeFormat(String timeFormat)
- override the time format string. a new dateformat object is created
- Parameters:
timeFormat -
MMBase 2.0-SNAPSHOT - null