Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Class java.text.DateFormat
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 DateFormat dateFormat =
2 DateFormat formatter = null;
3 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
4 DateFormat dateformat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM, Locale.getDefault());
5 (SimpleDateFormat) DateFormat.getDateTimeInstance(
6 map.put("DATE", DateFormat.getDateInstance(DateFormat.LONG).format(new Date())); // NOI18N
7 styleCode = DateFormat.DEFAULT;
8 SimpleDateFormat df = (SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, locale);
9 int srcStyle = DateFormat.DEFAULT;
10 dateParser.parse("January 27, 2002"),
11 return DateFormat.getInstance().getDateTimeInstance(DateFormat.LONG,
12 inFormat.setLenient(false);
13 .getDateTimeInstance(DateFormat.SHORT,
14 String shortFormat = DateFormat.getDateInstance(DateFormat.SHORT).format(jan1_1970);
15 return DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM).format(new Date(timestamp));
16 dateFormatter.setTimeZone(tz);
17 DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG,
18 sourceCopy.append(DateFormat.getDateInstance().format(new Date()));
19 txtValue.setText(sdf.format(new Date()));
20 SimpleDateFormat format = (SimpleDateFormat)SimpleDateFormat.getDateInstance( DateFormat.SHORT);

Links to utility classes and functions:

1 org.apache.tomcat.util.http.FastHttpDateFormat
2 com.skaringa.util.ISO8601DateFormat
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.