Method getDateInstance(int style)
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
.getDateInstance(DateFormat.SHORT).format(date);
2
.getDateInstance(DateFormat.LONG).format(date);
3
SimpleDateFormat format = (SimpleDateFormat)SimpleDateFormat.getDateInstance( DateFormat.SHORT);
4
SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT);
5
map.put("DATE", DateFormat.getDateInstance(DateFormat.LONG).format(new Date())); // NOI18N
6
df = DateFormat.getDateInstance(DateFormat.SHORT);
7
DateFormat fmt = DateFormat.getDateInstance(DateFormat.LONG);
8
DateFormat format = DateFormat.getDateInstance( DateFormat.SHORT);
9
String shortFormat = DateFormat.getDateInstance(DateFormat.SHORT).format(jan1_1970);
10
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
11
result = DateFormat.getDateInstance(DateFormat.SHORT).format(result);
12
DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
13
locFmt = (SimpleDateFormat)DateFormat.getDateInstance(
14
df = DateFormat.getDateInstance(DateFormat.SHORT);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.