add date functionality