DateUtils.FormatDate Method
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.
Overloads
| Name | Description |
|---|---|
| FormatDate(Date) |
Formats a date as an HTTP cookie date. |
| FormatDate(Date, String) |
Formats a date as an HTTP cookie date. |
FormatDate(Date)
Formats a date as an HTTP cookie date.
[Android.Runtime.Register("formatDate", "(Ljava/util/Date;)Ljava/lang/String;", "")]
public static string? FormatDate(Java.Util.Date? date);
[<Android.Runtime.Register("formatDate", "(Ljava/util/Date;)Ljava/lang/String;", "")>]
static member FormatDate : Java.Util.Date -> string
Parameters
- date
- Date
The date to format as an HTTP date.
Returns
The formatted HTTP date.
- Attributes
Remarks
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
FormatDate(Date, String)
Formats a date as an HTTP cookie date.
[Android.Runtime.Register("formatDate", "(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? FormatDate(Java.Util.Date? date, string? pattern);
[<Android.Runtime.Register("formatDate", "(Ljava/util/Date;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member FormatDate : Java.Util.Date * string -> string
Parameters
- date
- Date
The date to format as an HTTP date.
- pattern
- String
The date pattern to use for formatting.
Returns
The formatted HTTP date.
- Attributes
Remarks
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.