1. | format(Date date) | This method formats a Date into a date/time string | String |
2. | format(Date date, StringBuffer toAppendTo, FieldPosition position) | This method formats a Date into a date/time string. | StringBuffer |
3, | getCalendar() | This method returns the calendar associated with this date/time formatter | Calendar |
4. | getDateInstance() | This method returns the date formatter with the default formatting style for the default locale | static DateFormat |
5. | getDateInstance(int style) | This method returns the date formatter with the given formatting style for the given locale. | static DateFormat |
6. | getDateTimeInstance() | This method returns the date/time formatter with the default formatting style for the default locale. | static DateFormat |
7. | getDateTimeInstance(int dateStyle, int timeStyle) | This method returns the date/time formatter with the given date and time formatting styles for the default locale | static DateFormat |
8. | getInstance() | This method returns the default date/time formatter that uses the SHORT style for both the date and the time. | static DateFormat |
9. | getTimeInstance() | This method returns the time formatter with the default formatting style for the default locale. | static DateFormat |
10. | getTimeInstance(int style) | This method returns the time formatter with the given formatting style for the default locale. | static DateFormat |
11. | getTimeInstance(int style, Locale aLocale) | This method returns the time formatter with the given formatting style for the given locale. | static DateFormat |
12. | getNumberFormat() | This method returns the number formatted, which this date/time formatter uses to format and parse a time. | NumberFormat |
13. | parse(String source) | This method parses text from the beginning of the given string to produce a date. | Date |
14. | parse(String source, ParsePosition pos) | This method parses a date/time string according to the given parse position. | Date |
15. | parseObject(String source, ParsePosition pos) | This method parses text from a string to produce a Date. | Object |
16. | setCalendar(Calendar calendar) | This method sets the calendar to be used by this date format. | void |
17. | setLenient(boolean lenient) | This method specifies whether or not date/time parsing is to be lenient. | void |
18. | setTimeZone(TimeZone zone) | This method sets the time zone for the calendar of this DateFormat object. | void |
19. | getTimeZone() | This method returns the time zone | TimeZone |