public static class CalendarUtil.ThreadLocalDateFormatter extends Object
| Constructor and Description |
|---|
CalendarUtil.ThreadLocalDateFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(Date theDate,
String pattern)
A thread-safe method to format a given Date based-on the given pattern
|
static Date |
parse(String strDate,
String pattern)
static public and thread-safe method to parse a date from the given string
|
public CalendarUtil.ThreadLocalDateFormatter()
public static Date parse(String strDate, String pattern) throws ParseException
strDate - : input string to parsepattern - : date format pattern fo the input stringParseException - if parse exception happenedCopyright © 2016. All rights reserved.