logic for adding edit dates