Resignation Date to automatically make an employee inactive

Resignation Date to automatically make an employee inactive

I am trying to figure out a way to create an action that if a resignation date is selected to automatically make an employee inactive