|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.text.DateFormats
public class DateFormats
DateFormat relevant utilities.
Constructor Summary | |
---|---|
DateFormats()
|
Method Summary | |
---|---|
static java.lang.String |
format(java.util.Date d,
boolean dateOnly)
Formats a Date object based on the current Locale. |
static java.util.Date |
parse(java.lang.String s)
Parses a string to a date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateFormats()
Method Detail |
---|
public static final java.util.Date parse(java.lang.String s) throws java.text.ParseException
Locales.getCurrent()
.
java.text.ParseException
public static final java.lang.String format(java.util.Date d, boolean dateOnly)
dateOnly
- indicates whether to show only date; false to show
both date and time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |