Class DateFormatUtils
- java.lang.Object
-
- org.apache.myfaces.tobago.internal.util.DateFormatUtils
-
public final class DateFormatUtils extends Object
This code is taken from myfaces core. TODO: Should be sharable (e.g. myfaces-commons).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
findPattern(javax.faces.convert.DateTimeConverter converter)
Find a pattern for the converter.
-
-
-
Method Detail
-
findPattern
public static String findPattern(javax.faces.convert.DateTimeConverter converter)
Find a pattern for the converter. Returns the pattern inside the converter, if any. Otherwise compute the pattern.- Returns:
- the patter or null, if DateFormat.getDateInstance() returns no SimpleDateFormat.
-
-