Dela via


HeaderUtilities.TryParseDate Method

Definition

Overloads

TryParseDate(StringSegment, DateTimeOffset)

Attempts to parse the specified input as a DateTimeOffset value.

TryParseDate(String, DateTimeOffset)

TryParseDate(StringSegment, DateTimeOffset)

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

Attempts to parse the specified input as a DateTimeOffset value.

public:
 static bool TryParseDate(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] DateTimeOffset % result);
public static bool TryParseDate (Microsoft.Extensions.Primitives.StringSegment input, out DateTimeOffset result);
static member TryParseDate : Microsoft.Extensions.Primitives.StringSegment * DateTimeOffset -> bool
Public Shared Function TryParseDate (input As StringSegment, ByRef result As DateTimeOffset) As Boolean

Parameters

input
StringSegment

The input value.

result
DateTimeOffset

The parsed value.

Returns

true if input can be parsed as a date, otherwise false.

Applies to

TryParseDate(String, DateTimeOffset)

public:
 static bool TryParseDate(System::String ^ input, [Runtime::InteropServices::Out] DateTimeOffset % result);
public static bool TryParseDate (string input, out DateTimeOffset result);
static member TryParseDate : string * DateTimeOffset -> bool
Public Shared Function TryParseDate (input As String, ByRef result As DateTimeOffset) As Boolean

Parameters

input
String

Returns

Applies to