Date UtilsTry Parse(Byte, Int 32, Date Time Offset) Method
Try to parse the given input buffer into a new DateTimeOffset instance.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
if the date was successfully parsed; otherwise, .
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static bool TryParse(
byte[]? buffer,
int startIndex,
out DateTimeOffset? date
)Parameters
- buffer Byte
- The input buffer.
- startIndex Int32
- The starting index of the input buffer.
- date DateTimeOffset
- The parsed date.
Return Value
Booleanif the date was successfully parsed; otherwise, .
Remarks
Parses an rfc822 date and time from the supplied buffer starting at the specified index.