changed date handling to remove time because dp can't handle it