add date to tks function