Parses the rfc822 date string.
input date string
the DateTime representation of the date string specified by str or null on error.
str