Class MutableDateFormat

  • All Implemented Interfaces:
    LocaleListener

    public class MutableDateFormat
    extends java.lang.Object
    implements LocaleListener
    A simple wrapper around a SimpleDateFormat that simplifies the interface for altering and retrieving the format.
    • Constructor Detail

      • MutableDateFormat

        public MutableDateFormat()
      • MutableDateFormat

        public MutableDateFormat​(java.lang.String formatText)
    • Method Detail

      • getFormatText

        public java.lang.String getFormatText()
      • setFormatText

        public void setFormatText​(java.lang.String formatText)
                           throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • get_format

        public java.text.SimpleDateFormat get_format()
      • format

        public final java.lang.String format​(java.util.Date date)
      • parse

        public java.util.Date parse​(java.lang.String source)
                             throws java.text.ParseException
        Throws:
        java.text.ParseException