org.mmbase.applications.vprowizards.spring.util
Class DateTime

java.lang.Object
  extended by 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

Constructor Summary
DateTime()
           
 
Method Summary
 String getDate()
           
 long getDateInSeconds()
           
 Date getParsedDate()
           
 String getTime()
           
 void setDate(String date)
           
 void setDateFormat(String dateFormat)
          override the date format string.
 void setTime(String time)
           
 void setTimeFormat(String timeFormat)
          override the time format string.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateTime

public DateTime()
Method Detail

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