org.broadleafcommerce.openadmin.web.rulebuilder
Class RuleBuilderFormatUtil
java.lang.Object
org.broadleafcommerce.openadmin.web.rulebuilder.RuleBuilderFormatUtil
public class RuleBuilderFormatUtil
- extends Object
Work with dates in rule builder mvel
- Author:
- Jeff Fischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPATIBILITY_FORMAT
public static final String COMPATIBILITY_FORMAT
- See Also:
- Constant Field Values
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
RuleBuilderFormatUtil
public RuleBuilderFormatUtil()
formatDate
public static String formatDate(Date date)
- Prepare date for display in the admin
- Parameters:
date - the date to convert
- Returns:
- the string value to show in the admin
parseDate
public static Date parseDate(String date)
throws ParseException
- Parse the string value of the date stored in mvel
- Parameters:
date - the mvel date value
- Returns:
- the parsed Date instance
- Throws:
ParseException
Copyright © 2013. All Rights Reserved.