Added a date parsing function to shorten the rfc 822 date