|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmseries.ui.MDateFormatter
public class MDateFormatter
| Method Summary | |
|---|---|
Date |
dateParse(String text)
Uses Date formatters to parse the input text |
Date |
dateTimeParse(String text)
Uses DateTime formatters to parse the input text |
String |
format(Date date)
Returns the date formatted for display in the form of a String. |
StringBuffer |
format(Date date,
StringBuffer appendTo,
FieldPosition pos)
|
static MDateFormat |
getInstance()
Singleton constructor, there is no public constructor for this class |
static void |
main(String[] args)
|
Date |
parse(String text)
Applies the formatters to parse the input string and attempts to translate it into a valid date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MDateFormat getInstance()
public String format(Date date)
format in interface MDateFormat
public StringBuffer format(Date date,
StringBuffer appendTo,
FieldPosition pos)
format in interface MDateFormat
public Date parse(String text)
throws ParseException
parse in interface MDateFormatParseException
public Date dateParse(String text)
throws ParseException
text - - the string to be parsed
ParseException
public Date dateTimeParse(String text)
throws ParseException
text - - the string to be parsed
ParseExceptionpublic static void main(String[] args)
|
MDateSelector | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||