public class PreJava9DateFormatProvider extends Object
Constructor and Description |
---|
PreJava9DateFormatProvider() |
Modifier and Type | Method and Description |
---|---|
static DateFormat |
getUSDateFormat(int style)
Returns the same DateFormat as
DateFormat.getDateInstance(style, Locale.US) in Java 8 or below. |
static DateFormat |
getUSDateTimeFormat(int dateStyle,
int timeStyle)
Returns the same DateFormat as
DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.US)
in Java 8 or below. |
public static DateFormat getUSDateFormat(int style)
DateFormat.getDateInstance(style, Locale.US)
in Java 8 or below.public static DateFormat getUSDateTimeFormat(int dateStyle, int timeStyle)
DateFormat.getDateTimeInstance(dateStyle, timeStyle, Locale.US)
in Java 8 or below.Copyright © 2020. All rights reserved.