Java.Text.DateFormat Members

The members of Java.Text.DateFormat are listed below.

See Also: Inherited members from Java.Text._Format

Protected Constructors

Constructs a new instance of DateFormat.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
AmPmFieldint (14). FieldPosition selector for 'a' field alignment, corresponds to the Java.Util.Calendar.AmPm field.
const
DateFieldint (3). The FieldPosition selector for 'd' field alignment, corresponds to the Java.Util.Calendar.Date field.
const
DayOfWeekFieldint (9). FieldPosition selector for 'E' field alignment, corresponds to the Java.Util.Calendar.DayOfWeek field.
const
DayOfWeekInMonthFieldint (11). FieldPosition selector for 'F' field alignment, corresponds to the Java.Util.Calendar.DayOfWeekInMonth field.
const
DayOfYearFieldint (10). FieldPosition selector for 'D' field alignment, corresponds to the Java.Util.Calendar.DayOfYear field.
const
Defaultint (2). The format style constant defining the default format style.
const
EraFieldint (0). The FieldPosition selector for 'G' field alignment, corresponds to the Java.Util.Calendar.Era field.
const
Fullint (0). The format style constant defining the full style.
const
Hour0Fieldint (16). The FieldPosition selector for 'K' field alignment, corresponding to the Java.Util.Calendar.Hour field.
const
Hour1Fieldint (15). FieldPosition selector for 'h' field alignment, corresponding to the Java.Util.Calendar.Hour field.
const
HourOfDay0Fieldint (5). The FieldPosition selector for 'H' field alignment, corresponds to the Java.Util.Calendar.HourOfDay field.
const
HourOfDay1Fieldint (4). The FieldPosition selector for 'k' field alignment, corresponds to the Java.Util.Calendar.HourOfDay field.
const
Longint (1). The format style constant defining the long style.
const
Mediumint (2). The format style constant defining the medium style.
const
MillisecondFieldint (8). FieldPosition selector for 'S' field alignment, corresponds to the Java.Util.Calendar.Millisecond field.
const
MinuteFieldint (6). FieldPosition selector for 'm' field alignment, corresponds to the Java.Util.Calendar.Minute field.
const
MonthFieldint (2). The FieldPosition selector for 'M' field alignment, corresponds to the Java.Util.Calendar.Month field.
const
SecondFieldint (7). FieldPosition selector for 's' field alignment, corresponds to the Java.Util.Calendar.Second field.
const
Shortint (3). The format style constant defining the short style.
const
TimezoneFieldint (17). The FieldPosition selector for 'z' field alignment, corresponds to the Java.Util.Calendar.ZoneOffset and Java.Util.Calendar.DstOffset fields.
const
WeekOfMonthFieldint (13). FieldPosition selector for 'W' field alignment, corresponds to the Java.Util.Calendar.WeekOfMonth field.
const
WeekOfYearFieldint (12). FieldPosition selector for 'w' field alignment, corresponds to the Java.Util.Calendar.WeekOfYear field.
const
YearFieldint (1). The FieldPosition selector for 'y' field alignment, corresponds to the Java.Util.Calendar.Year field.

Public Properties

CalendarJava.Util.Calendar. Returns the calendar used by this DateFormat.
[read-only]
static
DateInstanceDateFormat. Returns a DateFormat instance for formatting and parsing dates in the DEFAULT style for the default locale.
[read-only]
static
DateTimeInstanceDateFormat. Returns a DateFormat instance for formatting and parsing dates and time values in the DEFAULT style for the default locale.
[read-only]
static
InstanceDateFormat. Returns a DateFormat instance for formatting and parsing dates and times in the SHORT style for the default locale.
Lenientbool. Indicates whether the calendar used by this date format is lenient.
NumberFormatNumberFormat. Returns the NumberFormat used by this DateFormat.
[read-only]
static
TimeInstanceDateFormat. Returns a DateFormat instance for formatting and parsing time values in the DEFAULT style for the default locale.
TimeZoneJava.Util.TimeZone. Returns the time zone of this date format's calendar.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Format(Java.Util.Date) : string
Formats the specified date using the rules of this date format.
override
Format(Java.Lang.Object, Java.Lang.StringBuffer, FieldPosition) : Java.Lang.StringBuffer
Formats the specified object as a string using the pattern of this date format and appends the string to the specified string buffer.
abstract
Format(Java.Util.Date, Java.Lang.StringBuffer, FieldPosition) : Java.Lang.StringBuffer
Formats the specified date as a string using the pattern of this date format and appends the string to the specified string buffer.
static
GetAvailableLocales() : Java.Util.Locale[]
Returns an array of locales for which custom DateFormat instances are available.
static
GetDateInstance(int) : DateFormat
Returns a DateFormat instance for formatting and parsing dates in the specified style for the user's default locale.
static
GetDateInstance(int, Java.Util.Locale) : DateFormat
Returns a DateFormat instance for formatting and parsing dates in the specified style for the specified locale.
static
GetDateTimeInstance(int, int) : DateFormat
Returns a DateFormat instance for formatting and parsing of both dates and time values in the manner appropriate for the user's default locale.
static
GetDateTimeInstance(int, int, Java.Util.Locale) : DateFormat
Returns a DateFormat instance for formatting and parsing dates and time values in the specified styles for the specified locale.
static
GetTimeInstance(int) : DateFormat
Returns a DateFormat instance for formatting and parsing time values in the specified style for the user's default locale.
static
GetTimeInstance(int, Java.Util.Locale) : DateFormat
Returns a DateFormat instance for formatting and parsing time values in the specified style for the specified locale.
Parse(string) : Java.Util.Date
Parses a date from the specified string using the rules of this date format.
abstract
Parse(string, ParsePosition) : Java.Util.Date
Parses a date from the specified string starting at the index specified by position.
override
ParseObject(string, ParsePosition) : Java.Lang.Object
Parses a date from the specified string starting at the index specified by position.