|
|||||||||
| Home >> All >> java >> [ text overview ] | PREV NEXT | ||||||||
Uses of Class
java.text.DateFormat
| Uses of DateFormat in java.text |
| Subclasses of DateFormat in java.text | |
class |
SimpleDateFormat
SimpleDateFormat provides convenient methods for parsing and formatting dates using Gregorian calendars (see java.util.GregorianCalendar). |
| Methods in java.text that return DateFormat | |
private static DateFormat |
DateFormat.computeInstance(int style,
java.util.Locale loc,
boolean use_date,
boolean use_time)
|
private static DateFormat |
DateFormat.computeInstance(int dateStyle,
int timeStyle,
java.util.Locale loc,
boolean use_date,
boolean use_time)
|
static DateFormat |
DateFormat.getDateInstance()
This method returns an instance of DateFormat that will
format using the default formatting style for dates. |
static DateFormat |
DateFormat.getDateInstance(int style)
This method returns an instance of DateFormat that will
format using the specified formatting style for dates. |
static DateFormat |
DateFormat.getDateInstance(int style,
java.util.Locale loc)
This method returns an instance of DateFormat that will
format using the specified formatting style for dates. |
static DateFormat |
DateFormat.getDateTimeInstance()
This method returns a new instance of DateFormat that
formats both dates and times using the SHORT style. |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle)
This method returns a new instance of DateFormat that
formats both dates and times using the DEFAULT style. |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
java.util.Locale loc)
This method returns a new instance of DateFormat that
formats both dates and times using the specified styles. |
static DateFormat |
DateFormat.getInstance()
This method returns a new instance of DateFormat that
formats both dates and times using the SHORT style. |
static DateFormat |
DateFormat.getTimeInstance()
This method returns an instance of DateFormat that will
format using the default formatting style for times. |
static DateFormat |
DateFormat.getTimeInstance(int style)
This method returns an instance of DateFormat that will
format using the specified formatting style for times. |
static DateFormat |
DateFormat.getTimeInstance(int style,
java.util.Locale loc)
This method returns an instance of DateFormat that will
format using the specified formatting style for times. |
|
|||||||||
| Home >> All >> java >> [ text overview ] | PREV NEXT | ||||||||