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.
|
Modifier and Type | Method and Description |
---|---|
String |
getDate() |
String |
getDateTime() |
String |
getDay() |
String |
getHour() |
String |
getMillisecond() |
String |
getMinute() |
String |
getMonth() |
String |
getSecond() |
String |
getTime() |
String |
getYear() |
void |
setDate(Date date)
Set the Date of this bean.
|
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–2022 The Apache Software Foundation. All rights reserved.