public class FormattedDate
extends java.util.Date
Date to provide a custom formatted version for display in JavaFX UI elements which
use the toString() method for date formatting.| Modifier and Type | Field and Description |
|---|---|
java.text.Format |
format
The format.
|
| Constructor and Description |
|---|
FormattedDate(java.text.Format format)
Construct
FormattedDate. |
FormattedDate(java.text.Format format,
long date)
Construct
FormattedDate. |
| Modifier and Type | Method and Description |
|---|---|
static FormattedDate |
fromDate(java.text.Format format,
java.util.Date date)
Create a formatted date from another date.
|
java.lang.String |
toString() |
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, UTCpublic FormattedDate(java.text.Format format)
FormattedDate.format - The Format to use for date display.Date.Date()public FormattedDate(java.text.Format format,
long date)
FormattedDate.format - The Format to use for date display.date - The initial date value in ms.Date.Date(long)public static FormattedDate fromDate(java.text.Format format, java.util.Date date)
If the submitted date is already of type FormattedDate the instance is returned directly otherwise the
submitted date is wrapped using the submitted date format.
format - The Format to use for date display.date - The date value to convert.public java.lang.String toString()
toString in class java.util.Date