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
  • Field Details

  • Constructor Details

    • RuleBuilderFormatUtil

      public RuleBuilderFormatUtil()
  • Method Details

    • 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