|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.util.DateUtils
public class DateUtils
This class provides utility to perform date conversion.
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
dateToString(java.util.Date date)
Returns yyyy-MM-dd HH:mm:ss String representation of a date. |
static java.util.Date |
stringToDate(java.lang.String strDate)
Returns date that is represented by a string. |
static java.lang.String |
toUTCDateFormat(java.util.Date date)
Returns UTC String representation of a date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtils()
| Method Detail |
|---|
public static java.lang.String dateToString(java.util.Date date)
yyyy-MM-dd HH:mm:ss String representation of a date.
date - Date object.public static java.lang.String toUTCDateFormat(java.util.Date date)
date - Date object.
public static java.util.Date stringToDate(java.lang.String strDate)
throws java.text.ParseException
strDate - String representation of date.
java.text.ParseException - if strDate is in an invalid format.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||