public class DateBean extends Object
${year} = 2009 ${date} = 2009-05-17
Constructor and Description |
---|
DateBean()
Construct a new DateBean for the current Date.
|
DateBean(Date date)
Construct a new DateBean with a given Date.
|
public DateBean()
public DateBean(Date date)
date
- the date to set.public void setDate(Date date)
date
- the date to set.public String getYear()
public String getMonth()
public String getDay()
public String getHour()
public String getMinute()
public String getSecond()
public String getMillisecond()
public String getDate()
yyyy-MM-dd
.public String getTime()
HH:mm:ss'Z'
.public String getDateTime()
yyyy-MM-dd'T'HH:mm:ss'Z'
.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.