How do I programmatically close webform by node date field?
I haven't tried this module, but you might look at "Scheduled Updates"

Here's a walk through:
https://www.mediacurrent.com/blog/scheduling-content-changes-drupal-8/