Convert dates to rfc822 format