HeaderUtilities.TryParseDate 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
TryParseDate(StringSegment, DateTimeOffset) |
Attempts to parse the specified |
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
- result
- DateTimeOffset