Using Rules to publish/unpublish based on a Date field in Drupal?

At /admin/config/workflow/rules/components/add

Create a “Action set”:
Name = Unpublish Content
Variables:
Data type = Node
Label = Node
Machine name = node
-Continue-

Actions:
  Node > Unpublish content
  Data selector = node
  -Save-
At /admin/config/workflow/rules
Create a “rule”:
Name = Unpublish Rule
React on event = Node > After saving new content
Restrict by type = your content-type
-Save-

Conditions:
  Content is published
  Data selector = node
  -Save-

Actions:
  Schedule component evaluation
  Component Value = Unpublish Content
  Scheduled evaluation date data selector = node:field-your-node-date-field
  Identifier value = Unpublish content ID [node:nid] ([node:title]).
  Node Data selector = node
  -Save-

Tags