Method getDateInstance(int style, Locale aLocale)
Return type:
java.text.DateFormat
Member of:
java.text.DateFormat
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
DateFormat sdf = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT, loc);
2
DateFormat dateformat = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
3
DateFormat dateformat = DateFormat.getDateInstance(DateFormat.SHORT,
4
(SimpleDateFormat) DateFormat.getDateInstance(
5
(DateFormat.FULL, Language.getLanguage().getLocale());
6
(DateFormat.SHORT, m_locale);
7
DateFormat.getDateInstance( DateFormat.DEFAULT, m_locale );
8
formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault());
9
SimpleDateFormat formatter = (SimpleDateFormat) DateFormat.getDateInstance(style, locale);
10
final DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.GERMAN);
11
String pattern = ((SimpleDateFormat)DateFormat.getDateInstance(ds, locale)).toPattern();
12
to_fmt = (SimpleDateFormat)DateFormat.getDateInstance(style, loc);
13
df = DateFormat.getDateInstance(DateFormat.SHORT, locale);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.