org.apache.myfaces.tobago.util
Class DateFormatUtils

java.lang.Object
  extended by org.apache.myfaces.tobago.util.DateFormatUtils

public class DateFormatUtils
extends java.lang.Object

This code is taken from myfaces core. TODO: Should be sharable (e.g. myfaces-commons).

User: lofwyr Date: 06.11.2006 17:20:29


Method Summary
static java.lang.String findPattern(DateTimeConverter converter)
          Find a pattern for the converter.
static java.text.DateFormat getDateFormat(java.lang.String type, java.lang.String dateStyle, java.lang.String timeStyle, java.util.Locale locale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findPattern

public static java.lang.String findPattern(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.

getDateFormat

public static java.text.DateFormat getDateFormat(java.lang.String type,
                                                 java.lang.String dateStyle,
                                                 java.lang.String timeStyle,
                                                 java.util.Locale locale)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.