Microsoft.Legal.MatterCenter.Utility.MailMimeReader.ProcessReceivedDate C# (CSharp) Method

ProcessReceivedDate() public method

To process received date from the header field
public ProcessReceivedDate ( string headerValue ) : System.DateTime
headerValue string Header value from the headers of the mail
return System.DateTime
        public DateTime ProcessReceivedDate(string headerValue)
        {
            DateTime result = DateTime.MinValue;
            if (!string.IsNullOrWhiteSpace(headerValue))
            {
                string datePortion = headerValue.Substring(headerValue.LastIndexOf(ServiceConstants.SEMICOLON, StringComparison.OrdinalIgnoreCase) + 1);
                result = this.ConvertToDateTime(datePortion);
            }
            return result;
        }