Add support for date headers (fix issue #7)