Example usage for Java java.text SimpleDateFormat fields, constructors, methods, implement or subclass
The text is from its open source code.
SimpleDateFormat(String pattern) Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the default java.util.Locale.Category#FORMAT FORMAT locale. | |
SimpleDateFormat() Constructs a SimpleDateFormat using the default pattern and date format symbols for the default java.util.Locale.Category#FORMAT FORMAT locale. | |
SimpleDateFormat(String pattern, Locale locale) Constructs a SimpleDateFormat using the given pattern and the default date format symbols for the given locale. | |
SimpleDateFormat(String pattern, DateFormatSymbols formatSymbols) Constructs a SimpleDateFormat using the given pattern and date format symbols. |
void | applyLocalizedPattern(String pattern) Applies the given localized pattern string to this date format. |
void | applyPattern(String pattern) Applies the given pattern string to this date format. |
Object | clone() Creates a copy of this SimpleDateFormat . |
boolean | equals(Object obj) Compares the given object with this SimpleDateFormat for equality. |
String | format(Date date) Formats a Date into a date-time string. |
StringBuffer | format(Date date, StringBuffer toAppendTo, FieldPosition pos) Formats the given Date into a date/time string and appends the result to the given StringBuffer . |
StringBuffer | format(Date date, StringBuffer toAppendTo, FieldDelegate delegate) |
Date | get2DigitYearStart() Returns the beginning date of the 100-year period 2-digit years are interpreted as being within. |
Locale[] | getAvailableLocales() Returns an array of all locales for which the get*Instance methods of this class can return localized instances. |
Calendar | getCalendar() Gets the calendar associated with this date/time formatter. |
DateFormatSymbols | getDateFormatSymbols() Gets a copy of the date and time format symbols of this date format. |
DateFormat | getDateInstance(int style, Locale aLocale) Gets the date formatter with the given formatting style for the given locale. |
DateFormat | getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale) Gets the date/time formatter with the given formatting styles for the given locale. |
TimeZone | getTimeZone() Gets the time zone. |
int | hashCode() Returns the hash code value for this SimpleDateFormat object. |
Date | parse(String source) Parses text from the beginning of the given string to produce a date. |
Date | parse(String text, ParsePosition pos) Parses text from a string to produce a Date . |
Object | parseObject(String source) Parses text from the beginning of the given string to produce an object. |
void | set2DigitYearStart(Date startDate) Sets the 100-year period 2-digit years will be interpreted as being in to begin on the date the user specifies. |
void | setCalendar(Calendar newCalendar) Set the calendar to be used by this date format. |
void | setDateFormatSymbols(DateFormatSymbols newFormatSymbols) Sets the date and time format symbols of this date format. |
void | setLenient(boolean lenient) Specify whether or not date/time parsing is to be lenient. |
void | setTimeZone(TimeZone zone) Sets the time zone for the calendar of this DateFormat object. |
String | toLocalizedPattern() Returns a localized pattern string describing this date format. |
String | toPattern() Returns a pattern string describing this date format. |
String | toString() Returns a string representation of the object. |