Dela via


HeaderUtilities.FormatDate Method

Definition

Overloads

FormatDate(DateTimeOffset)

Formats the dateTime using the RFC1123 format specifier.

FormatDate(DateTimeOffset, Boolean)

Formats the dateTime using the RFC1123 format specifier and optionally quotes it.

FormatDate(DateTimeOffset)

Source:
HeaderUtilities.cs
Source:
HeaderUtilities.cs
Source:
HeaderUtilities.cs

Formats the dateTime using the RFC1123 format specifier.

public:
 static System::String ^ FormatDate(DateTimeOffset dateTime);
public static string FormatDate (DateTimeOffset dateTime);
static member FormatDate : DateTimeOffset -> string
Public Shared Function FormatDate (dateTime As DateTimeOffset) As String

Parameters

dateTime
DateTimeOffset

The date to format.

Returns

The formatted date.

Applies to

FormatDate(DateTimeOffset, Boolean)

Source:
HeaderUtilities.cs
Source:
HeaderUtilities.cs
Source:
HeaderUtilities.cs

Formats the dateTime using the RFC1123 format specifier and optionally quotes it.

public:
 static System::String ^ FormatDate(DateTimeOffset dateTime, bool quoted);
public static string FormatDate (DateTimeOffset dateTime, bool quoted);
static member FormatDate : DateTimeOffset * bool -> string
Public Shared Function FormatDate (dateTime As DateTimeOffset, quoted As Boolean) As String

Parameters

dateTime
DateTimeOffset

The date to format.

quoted
Boolean

Determines if the formatted date should be quoted.

Returns

The formatted date.

Applies to