org.broadleafcommerce.common.util
Class FormatUtil

java.lang.Object
  extended by org.broadleafcommerce.common.util.FormatUtil

public class FormatUtil
extends Object

Author:
Jeff Fischer

Field Summary
static String DATE_FORMAT
           
static String DATE_FORMAT_WITH_TIMEZONE
           
 
Constructor Summary
FormatUtil()
           
 
Method Summary
static SimpleDateFormat getDateFormat()
           
static SimpleDateFormat getTimeZoneFormat()
          Used with dates in rules since they are not stored as a Timestamp type (and thus not converted to a specific database timezone on a save).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values

DATE_FORMAT_WITH_TIMEZONE

public static final String DATE_FORMAT_WITH_TIMEZONE
See Also:
Constant Field Values
Constructor Detail

FormatUtil

public FormatUtil()
Method Detail

getDateFormat

public static SimpleDateFormat getDateFormat()

getTimeZoneFormat

public static SimpleDateFormat getTimeZoneFormat()
Used with dates in rules since they are not stored as a Timestamp type (and thus not converted to a specific database timezone on a save). In order to provide accurate information, the timezone must also be preserved in the MVEL rule expression

Returns:


Copyright © 2013. All Rights Reserved.