Automatically update value of document in collection after a certain timeframe

Hi everyone-

I’m looking to create an “End date” for a collection of documents. After the specified end date (it is user driven), users should not be able to update the document.

I’d also like to specify a value within each document called isActive: true or isActive: false. It will be isActive: true if the current date is not after the end date.

Is there a way to automatically update this value within the document after the end date “passes?” So, if I have an end date of 08/04/2016, and after 08/04, the isActive attribute automatically gets set to false?

Any help or a point in the right direction would be greatly appreciated. Thanks!!