EssentialsTime.TryParseRfc2822 method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
TryParseRfc2822(string, out EssentialsTime)
Static
Converts the specified rfc2822
formatted date and time to its EssentialsTime
equivalent and returns a value that indicates whether the conversion succeeded.
public static bool TryParseRfc2822(string rfc2822, EssentialsTime result)
Parameters
rfc2822
String
The string with the RFC 2822 formatted date.
result
EssentialsTime
When this method returns, contains the EssentialsTime value
equivalent to the date and time contained in rfc2822
, if the conversion succeeded, or
null
if the conversion failed.
Returns
true
if the rfc2822
parameter was converted successfully; otherwise, false
.