Click or drag to resize

DateTryParse(ReadOnlySpanChar, IFormatProvider, Date) Method

Tries to parse a span of characters into a value.

Namespace: Austra.Library.Dates
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.7.0+6baf2f2fa1d256420275372aea03344dd79bdd55
Syntax
C#
public static bool TryParse(
	ReadOnlySpan<char> s,
	IFormatProvider? provider,
	out Date result
)

Parameters

s  ReadOnlySpanChar
The span of characters to parse.
provider  IFormatProvider
An object that provides culture-specific formatting information about s.
result  Date
When this method returns, contains the result of successfully parsing s, or an undefined value on failure.

Return Value

Boolean
if s was successfully parsed; otherwise, .

Implements

ISpanParsableTSelfTryParse(ReadOnlySpanChar, IFormatProvider, TSelf)
See Also