DateParse(ReadOnlySpanChar, IFormatProvider) Method |
Parses a span of characters into a value.
Namespace: Austra.Library.DatesAssembly: Austra.Library (in Austra.Library.dll) Version: 2.7.0+6baf2f2fa1d256420275372aea03344dd79bdd55
Syntaxpublic static Date Parse(
ReadOnlySpan<char> s,
IFormatProvider? provider
)
Parameters
- s ReadOnlySpanChar
- The span of characters to parse.
- provider IFormatProvider
- An object that provides culture-specific formatting information about s.
Return Value
DateThe result of parsing
s.
Implements
ISpanParsableTSelfParse(ReadOnlySpanChar, IFormatProvider)
Exceptions| Exception | Condition |
|---|
| FormatException | s is not in the correct format. |
| OverflowException | s is not representable by TSelf. |
See Also