Freigeben über


DateFormat.FormatFormatted Method

Definition

Overloads

FormatFormatted(ICharSequence, Calendar)

Given a format string and a java.util.Calendar object, returns a CharSequence containing the requested date.

FormatFormatted(ICharSequence, Date)

Given a format string and a java.util.Date object, returns a CharSequence containing the requested date.

FormatFormatted(ICharSequence, Int64)

Given a format string and a time in milliseconds since Jan 1, 1970 GMT, returns a CharSequence containing the requested date.

FormatFormatted(ICharSequence, Calendar)

Given a format string and a java.util.Calendar object, returns a CharSequence containing the requested date.

[Android.Runtime.Register("format", "(Ljava/lang/CharSequence;Ljava/util/Calendar;)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence? FormatFormatted (Java.Lang.ICharSequence? inFormat, Java.Util.Calendar? inDate);
[<Android.Runtime.Register("format", "(Ljava/lang/CharSequence;Ljava/util/Calendar;)Ljava/lang/CharSequence;", "")>]
static member FormatFormatted : Java.Lang.ICharSequence * Java.Util.Calendar -> Java.Lang.ICharSequence

Parameters

inFormat
ICharSequence

the format string, as described in android.text.format.DateFormat

inDate
Calendar

the date to format

Returns

a CharSequence containing the requested text

Attributes

Remarks

Given a format string and a java.util.Calendar object, returns a CharSequence containing the requested date.

Java documentation for android.text.format.DateFormat.format(java.lang.CharSequence, java.util.Calendar).

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.

Applies to

FormatFormatted(ICharSequence, Date)

Given a format string and a java.util.Date object, returns a CharSequence containing the requested date.

[Android.Runtime.Register("format", "(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence? FormatFormatted (Java.Lang.ICharSequence? inFormat, Java.Util.Date? inDate);
[<Android.Runtime.Register("format", "(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;", "")>]
static member FormatFormatted : Java.Lang.ICharSequence * Java.Util.Date -> Java.Lang.ICharSequence

Parameters

inFormat
ICharSequence

the format string, as described in android.text.format.DateFormat

inDate
Date

the date to format

Returns

a CharSequence containing the requested text

Attributes

Remarks

Given a format string and a java.util.Date object, returns a CharSequence containing the requested date.

Java documentation for android.text.format.DateFormat.format(java.lang.CharSequence, java.util.Date).

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.

Applies to

FormatFormatted(ICharSequence, Int64)

Given a format string and a time in milliseconds since Jan 1, 1970 GMT, returns a CharSequence containing the requested date.

[Android.Runtime.Register("format", "(Ljava/lang/CharSequence;J)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence? FormatFormatted (Java.Lang.ICharSequence? inFormat, long inTimeInMillis);
[<Android.Runtime.Register("format", "(Ljava/lang/CharSequence;J)Ljava/lang/CharSequence;", "")>]
static member FormatFormatted : Java.Lang.ICharSequence * int64 -> Java.Lang.ICharSequence

Parameters

inFormat
ICharSequence

the format string, as described in android.text.format.DateFormat

inTimeInMillis
Int64

in milliseconds since Jan 1, 1970 GMT

Returns

a CharSequence containing the requested text

Attributes

Remarks

Given a format string and a time in milliseconds since Jan 1, 1970 GMT, returns a CharSequence containing the requested date.

Java documentation for android.text.format.DateFormat.format(java.lang.CharSequence, long).

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.

Applies to