net.sf.springlayout.util
Class DateFormatUtil

java.lang.Object
  extended by net.sf.springlayout.util.DateFormatUtil

public class DateFormatUtil
extends java.lang.Object

Created on 14/11/2006

Author:
Rob Monie

Constructor Summary
DateFormatUtil()
           
 
Method Summary
static java.text.SimpleDateFormat getLocalizedDateFormat(java.util.Locale locale)
          Gets a localised date format with a four digit year with month day and year separated by "/" character.
static java.lang.String getLocalizedDateFormatForJsPicker(java.util.Locale locale)
          Gets a localised date format for the dynarch js calendar picker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormatUtil

public DateFormatUtil()
Method Detail

getLocalizedDateFormat

public static java.text.SimpleDateFormat getLocalizedDateFormat(java.util.Locale locale)
Gets a localised date format with a four digit year with month day and year separated by "/" character. Essentially it just swaps between dd/MM/yyyy or MM/dd/yyyy depending on the locale.

Parameters:
locale -
Returns:
a localised date format with a four digit year.

getLocalizedDateFormatForJsPicker

public static java.lang.String getLocalizedDateFormatForJsPicker(java.util.Locale locale)
Gets a localised date format for the dynarch js calendar picker

Parameters:
locale -
Returns:
a localised date format with a four digit year.


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.