fixed the date adder so that it works