add date to class