|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sap.ip.me.api.services.DateFormatter
Formats dates.
| Constructor Summary | |
DateFormatter()
|
|
| Method Summary | |
static java.lang.String |
getCurrentDate()
Returns a date string for the current date in the format "yyyy-MM-dd". |
static java.lang.String |
getCurrentDateABAP()
Returns a date string for the current date in the ABAP format "yyyyMMdd". |
static java.lang.String |
getCurrentTimeABAP()
Returns a time string for the current date in the ABAP format "HHmmSS". |
static java.lang.String |
getDate(java.util.Date date)
Returns a date string for the given date object in the format "yyyy-MM-dd". |
static java.util.Date |
getDate(java.lang.String date)
Parses the given date string (yyyy-MM-dd) and returns a corresponding Date object. |
static java.lang.String |
getDateABAP(java.util.Date date)
Returns a date string for the given date object in the ABAP format "yyyyMMdd". |
static java.lang.String |
getTimeABAP(java.util.Date date)
Returns a time string for the given date object in the ABAP format "HHmmSS". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DateFormatter()
| Method Detail |
public static java.util.Date getDate(java.lang.String date)
throws java.text.ParseException
Date object. If the date string cannot be parsed a ParseException
will be thrown.
date - The date string that should be parsed. It has to
be in the format "yyyy-MM-dd".
java.text.ParseException - If parsing fails a ParseException
will be thrown.public static java.lang.String getDate(java.util.Date date)
date - The date object that should be formatted.
public static java.lang.String getCurrentDate()
public static java.lang.String getDateABAP(java.util.Date date)
date - The date object that should be formatted
public static java.lang.String getCurrentDateABAP()
public static java.lang.String getTimeABAP(java.util.Date date)
date - The date object that should be formatted
public static java.lang.String getCurrentTimeABAP()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||