|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.edm.util.DateUtil
This class provides method to convert string to date and to convert date to string.
Field Summary | |
(package private) static java.lang.String |
DATE_FORMAT_STRING
|
(package private) static java.lang.String |
DATE_ONLY_FORMAT_STRING
|
(package private) static java.text.SimpleDateFormat |
SDFDATE
|
(package private) static java.text.SimpleDateFormat |
SDFDATEONLY
|
Method Summary | |
static java.lang.String |
date2String(java.util.Date date)
This method converts a date format to string |
static java.lang.String |
dateOnly2String(java.util.Date date)
This method converts a date component to string |
static void |
init()
Gets the date format of the DateUtil class To be called before from login. |
static java.util.Date |
string2Date(java.lang.String formatDate)
This method convert a string format to date |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static java.lang.String DATE_FORMAT_STRING
static java.lang.String DATE_ONLY_FORMAT_STRING
static java.text.SimpleDateFormat SDFDATE
static java.text.SimpleDateFormat SDFDATEONLY
Method Detail |
public static java.lang.String date2String(java.util.Date date)
date
- a date data type
public static java.lang.String dateOnly2String(java.util.Date date)
date
- a date data type
public static void init()
public static java.util.Date string2Date(java.lang.String formatDate) throws ValidationException
formatDate
- a string format date
ValidationException
- thrown when validation fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.