Class DatePattern

java.lang.Object
com.aquima.interactions.framework.mask.impl.AbstractMask
com.aquima.interactions.framework.mask.impl.DatePattern
All Implemented Interfaces:
IMask

public class DatePattern extends AbstractMask
This mask applies a date format with a specific pattern to a date(time) value. See com.aquima.interactions.foundation.text.DateFormat for more pattern information. This mask extends the patterns of date format with some extra pattern symbols:
  • h: 12-hour hour notation.
  • hh: 12-hour hour notation (with leading zeros).
  • d: short representation of the day of the month.
  • M: short representation of the month.
  • yy: last two digits of the year.
  • day: spelled day of the month.
  • dayofweek: spelled day of the week.
  • month: spelled month of the year.
  • year: spelled year.
Required parameter:
  • pattern: the pattern to use.
Since:
6.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • DatePattern

      public DatePattern(ISpellEngine spellEngine)
      Construct a date pattern mask.
      Parameters:
      spellEngine - Spell engine used for spelling dates.
  • Method Details