set date to be dynamic