fixing date formats in emails