This will automatically change the state of your record on the specified date.
If you are using build triggers, you can set them to automatically trigger a build when the scheduled publication/unpublication is done.
You can find this setting in the build trigger settings: