- Direct Known Subclasses:
DateStringConverter
,TimeStringConverter
public class DateTimeStringConverter extends StringConverter<Date>
StringConverter
implementation for Date
values that
represent a date and time.
- Since:
- JavaFX 2.1
- See Also:
DateStringConverter
,TimeStringConverter
-
Constructor Summary
Constructors Constructor Description DateTimeStringConverter()
DateTimeStringConverter(int dateStyle, int timeStyle)
DateTimeStringConverter(String pattern)
Create aStringConverter
forDate
values, using the specified pattern.DateTimeStringConverter(DateFormat dateFormat)
DateTimeStringConverter(Locale locale)
Create aStringConverter
forDate
values, using the specified locale andDateFormat.DEFAULT
styles for date and time.DateTimeStringConverter(Locale locale, int dateStyle, int timeStyle)
Create aStringConverter
forDate
values, using specified locale andDateFormat
styles for date and time.DateTimeStringConverter(Locale locale, String pattern)
Create aStringConverter
forDate
values, using the specified locale and pattern. -
Method Summary
Methods declared in class javafx.util.StringConverter
fromString, toString
-
Constructor Details
-
DateTimeStringConverter
public DateTimeStringConverter() -
DateTimeStringConverter
public DateTimeStringConverter(int dateStyle, int timeStyle)- Parameters:
dateStyle
- the given formatting style. For example,DateFormat.SHORT
for "M/d/yy" in the US locale.timeStyle
- the given formatting style. For example,DateFormat.SHORT
for "h:mm a" in the US locale.- Since:
- JavaFX 8u40
-
DateTimeStringConverter
Create aStringConverter
forDate
values, using the specified locale andDateFormat.DEFAULT
styles for date and time.- Parameters:
locale
- the given locale.
-
DateTimeStringConverter
Create aStringConverter
forDate
values, using specified locale andDateFormat
styles for date and time.- Parameters:
locale
- the given locale.dateStyle
- the given formatting style. For example,DateFormat.SHORT
for "M/d/yy" in the US locale.timeStyle
- the given formatting style. For example,DateFormat.SHORT
for "h:mm a" in the US locale.- Since:
- JavaFX 8u40
-
DateTimeStringConverter
Create aStringConverter
forDate
values, using the specified pattern.- Parameters:
pattern
- the pattern describing the date and time format.
-
DateTimeStringConverter
Create aStringConverter
forDate
values, using the specified locale and pattern.- Parameters:
locale
- the given locale.pattern
- the pattern describing the date and time format.
-
DateTimeStringConverter
- Parameters:
dateFormat
- theDateFormat
to be used for formatting and parsing.
-