add date and datetime period