Method GetDateTime
GetDateTime(IFormatProvider?)
Gets a DateTime from this StringValue.
public DateTime GetDateTime(IFormatProvider? fmtProvider = null)
Parameters
fmtProvider
IFormatProviderOptional. Specifies the culture-specific format information.
Returns
- DateTime
An non-null DateTime value.
Exceptions
- NullReferenceException
Thrown when the value stored in this instance is null.
- FormatException
Thrown when the value stored in this instance is not parseable to the desired type.