|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openhealthexchange.openpixpdq.util.DateUtil
public class DateUtil
This class contains utility methods for date
Constructor Summary | |
---|---|
DateUtil()
|
Method Summary | |
---|---|
static java.util.Date |
convertHL7Date(java.lang.String fromDate)
Converts the date String into date format |
static java.util.Calendar |
convertHL7DateToCalender(java.lang.String fromDate)
Converts the date String into Calender |
static java.lang.String |
formatDateTime(java.util.Date date)
Formats a date/time according to the HL7 v2.3.1 spec. |
static java.lang.String |
formatDateTime(java.util.Date date,
java.lang.String formatString)
Formats a date/time according to the HL7 v2.3.1 spec unless a custom format string is supplied, then use that. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateUtil()
Method Detail |
---|
public static java.util.Calendar convertHL7DateToCalender(java.lang.String fromDate)
fromDate
- as String to be converted from
public static java.util.Date convertHL7Date(java.lang.String fromDate)
fromDate
- as String to be converted from
public static java.lang.String formatDateTime(java.util.Date date, java.lang.String formatString)
date
- the date/time to formatformatString
- a custom format string, or NULL for the default
public static java.lang.String formatDateTime(java.util.Date date)
date
- the date/time to format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |