Class FormattedDate

All Implemented Interfaces:, java.lang.Cloneable, java.lang.Comparable<java.util.Date>

public class FormattedDate
extends java.util.Date
Subclass of Date that prints itself according to the passed DateFormat class
See Also:
Serialized Form
  • Constructor Summary

    Constructor Description
    FormattedDate​(long l, java.text.DateFormat df)  
    FormattedDate​(java.util.Date d, java.text.DateFormat df)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String toString()  

    Methods inherited from class java.util.Date

    after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FormattedDate

      public FormattedDate​(java.util.Date d, java.text.DateFormat df)
    • FormattedDate

      public FormattedDate​(long l, java.text.DateFormat df)
  • Method Details

    • toString

      public java.lang.String toString()
      toString in class java.util.Date