HeaderUtilities.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
FormatDate(DateTimeOffset) |
Formats the |
FormatDate(DateTimeOffset, Boolean) |
Formats the |
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.