Change end date on timeline when task completed

Is there a way to change start date on timeline when task is done?