corrected headers
added util for handling dates