Replaced DateUtils with SimpleDateFormat for parsing dates from headers