SimpleDateFormat Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<code>SimpleDateFormat</code> is a concrete class for formatting and parsing dates in a locale-sensitive manner.
[Android.Runtime.Register("java/text/SimpleDateFormat", DoNotGenerateAcw=true)]
public class SimpleDateFormat : Java.Text.DateFormat
[<Android.Runtime.Register("java/text/SimpleDateFormat", DoNotGenerateAcw=true)>]
type SimpleDateFormat = class
inherit DateFormat
- Inheritance
- Attributes
Remarks
Java documentation for java.text.SimpleDateFormat.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructors
| SimpleDateFormat() |
Constructs a <code>SimpleDateFormat</code> using the default pattern and
date format symbols for the default
|
| SimpleDateFormat(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| SimpleDateFormat(String) |
Constructs a <code>SimpleDateFormat</code> using the given pattern and
the default date format symbols for the default
|
| SimpleDateFormat(String, DateFormatSymbols) |
Constructs a <code>SimpleDateFormat</code> using the given pattern and date format symbols. |
| SimpleDateFormat(String, Locale) |
Constructs a <code>SimpleDateFormat</code> using the given pattern and the default date format symbols for the given locale. |
Fields
| AmPmField |
Useful constant for AM_PM field alignment. (Inherited from DateFormat) |
| DateField |
Useful constant for DATE field alignment. (Inherited from DateFormat) |
| DayOfWeekField |
Useful constant for DAY_OF_WEEK field alignment. (Inherited from DateFormat) |
| DayOfWeekInMonthField |
Useful constant for DAY_OF_WEEK_IN_MONTH field alignment. (Inherited from DateFormat) |
| DayOfYearField |
Useful constant for DAY_OF_YEAR field alignment. (Inherited from DateFormat) |
| Default |
Constant for default style pattern. (Inherited from DateFormat) |
| EraField |
Useful constant for ERA field alignment. (Inherited from DateFormat) |
| Full |
Constant for full style pattern. (Inherited from DateFormat) |
| Hour0Field |
Useful constant for zero-based HOUR field alignment. (Inherited from DateFormat) |
| Hour1Field |
Useful constant for one-based HOUR field alignment. (Inherited from DateFormat) |
| HourOfDay0Field |
Useful constant for zero-based HOUR_OF_DAY field alignment. (Inherited from DateFormat) |
| HourOfDay1Field |
Useful constant for one-based HOUR_OF_DAY field alignment. (Inherited from DateFormat) |
| Long |
Constant for long style pattern. (Inherited from DateFormat) |
| Medium |
Constant for medium style pattern. (Inherited from DateFormat) |
| MillisecondField |
Useful constant for MILLISECOND field alignment. (Inherited from DateFormat) |
| MinuteField |
Useful constant for MINUTE field alignment. (Inherited from DateFormat) |
| MonthField |
Useful constant for MONTH field alignment. (Inherited from DateFormat) |
| SecondField |
Useful constant for SECOND field alignment. (Inherited from DateFormat) |
| Short |
Constant for short style pattern. (Inherited from DateFormat) |
| TimezoneField |
Useful constant for TIMEZONE field alignment. (Inherited from DateFormat) |
| WeekOfMonthField |
Useful constant for WEEK_OF_MONTH field alignment. (Inherited from DateFormat) |
| WeekOfYearField |
Useful constant for WEEK_OF_YEAR field alignment. (Inherited from DateFormat) |
| YearField |
Useful constant for YEAR field alignment. (Inherited from DateFormat) |
Properties
| Calendar |
Gets the calendar associated with this date/time formatter. -or- Set the calendar to be used by this date format. (Inherited from DateFormat) |
| Class |
Returns the runtime class of this |
| DateFormatSymbols |
Gets a copy of the date and time format symbols of this date format. -or- Sets the date and time format symbols of this date format. |
| Handle |
The handle to the underlying Android instance. (Inherited from Object) |
| JniIdentityHashCode | (Inherited from Object) |
| JniPeerMembers | |
| Lenient |
Tell whether date/time parsing is to be lenient. -or- Specify whether or not date/time parsing is to be lenient. (Inherited from DateFormat) |
| NumberFormat |
Gets the number formatter which this date/time formatter uses to format and parse a time. -or- Allows you to set the number formatter. (Inherited from DateFormat) |
| PeerReference | (Inherited from Object) |
| ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
| ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
| TimeZone |
Gets the time zone. -or- Sets the time zone for the calendar of this |
Methods
| ApplyLocalizedPattern(String) |
Applies the given localized pattern string to this date format. |
| ApplyPattern(String) |
Applies the given pattern string to this date format. |
| Clone() |
Creates and returns a copy of this object. (Inherited from _Format) |
| Dispose() | (Inherited from Object) |
| Dispose(Boolean) | (Inherited from Object) |
| Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
| Format(Date) |
Formats a Date into a date/time string. (Inherited from DateFormat) |
| Format(Date, StringBuffer, FieldPosition) |
Formats the given <code>Date</code> into a date/time string and appends the result to the given <code>StringBuffer</code>. |
| Format(Object) |
Formats an object to produce a string. (Inherited from _Format) |
| Format(Object, StringBuffer, FieldPosition) |
Overrides Format. (Inherited from DateFormat) |
| FormatToCharacterIterator(Object) |
Formats an Object producing an <code>AttributedCharacterIterator</code>. (Inherited from _Format) |
| Get2DigitYearStart() |
Returns the beginning date of the 100-year period 2-digit years are interpreted as being within. |
| GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
| JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
| Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
| NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
| Parse(String) |
Parses text from the beginning of the given string to produce a date. (Inherited from DateFormat) |
| Parse(String, ParsePosition) |
Parses text from a string to produce a <code>Date</code>. |
| ParseObject(String) |
Parses text from the beginning of the given string to produce an object. (Inherited from _Format) |
| ParseObject(String, ParsePosition) |
Parses text from a string to produce a <code>Date</code>. (Inherited from DateFormat) |
| Set2DigitYearStart(Date) |
Sets the 100-year period 2-digit years will be interpreted as being in to begin on the date the user specifies. |
| SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
| ToArray<T>() | (Inherited from Object) |
| ToLocalizedPattern() |
Returns a localized pattern string describing this date format. |
| ToPattern() |
Returns a pattern string describing this date format. |
| ToString() |
Returns a string representation of the object. (Inherited from Object) |
| UnregisterFromRuntime() | (Inherited from Object) |
| Wait() |
Causes the current thread to wait until another thread invokes the
|
| Wait(Int64) |
Causes the current thread to wait until either another thread invokes the
|
| Wait(Int64, Int32) |
Causes the current thread to wait until another thread invokes the
|
Explicit Interface Implementations
| IJavaPeerable.Disposed() | (Inherited from Object) |
| IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
| IJavaPeerable.Finalized() | (Inherited from Object) |
| IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
| IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
| IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
| IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
| JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
| JavaCast<TResult>(IJavaObject) | |
| GetJniTypeName(IJavaPeerable) | |