|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.geekologue.md4j.util.ConvertUtils
public class ConvertUtils
Conversion utilities without checked exceptions
| Constructor Summary | |
|---|---|
ConvertUtils()
|
|
| Method Summary | |
|---|---|
static java.util.Date |
parseDate(java.lang.String date)
This method attempts to parse the given string to a date using MM/dd/yyyy as a pattern |
static java.util.Date |
parseDate(java.lang.String date,
java.lang.String pattern)
This method attempts to parse the given 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 ConvertUtils()
| Method Detail |
|---|
public static final java.util.Date parseDate(java.lang.String date,
java.lang.String pattern)
date - the date as a stringpattern - the pattern to use for parsing the date
ConversionException - upon failure to parse using the given patternpublic static final java.util.Date parseDate(java.lang.String date)
date - the date as a string
ConversionException - upon failure to parse using the default pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||