# Post publish date range?

**URL:** <https://forum.litium.com/t/post-publish-date-range/235>\
**Category:** Questions\
**Created:** [September 7, 2018, 9:45am UTC](https://forum.litium.com/t/post-publish-date-range/235 "2018-09-07T09:45:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin.w](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/robin.w/32/75_2.png) [@Robin.w](https://forum.litium.com/u/Robin.w)\
**Post date:** [September 7, 2018, 9:45am UTC](https://forum.litium.com/t/post-publish-date-range/235/1 "2018-09-07T09:45:53Z")

</div>

Hi! Part of our workflow it to add a lot of promotional posts that should only be visible between certain dates.  
We can do this by setting a Timed Publish date, publish the post and then under advanced setting set an unpublish-date. But we want to have it consolidated in one place.

What is my best option? Have I missed a feature? is it possible to tweak the timed publish to take a date range?

Or is my best option to add two date fields to the posts itself? and then on publish, unpublish the post and set the date range programmatically? If you any hints on what api’s to use?

Litium version: 6.2

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [September 7, 2018, 10:03am UTC](https://forum.litium.com/t/post-publish-date-range/235/2 "2018-09-07T10:03:07Z")

</div>

The page does not have to be published to set a future unpublish date so you can set both a future publish and unpublish date up in advance.

---

<div class="post-metadata">

**Author:** ![Robin.w](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/robin.w/32/75_2.png) [@Robin.w](https://forum.litium.com/u/Robin.w)\
**Post date:** [September 7, 2018, 10:22am UTC](https://forum.litium.com/t/post-publish-date-range/235/3 "2018-09-07T10:22:47Z")

</div>

I don’t see this option under advanced, I only have:

Unpublish date  
Auto archive

Then I need to set the publish time in a different view, I want this info in the same view. next to each other.

For this, I need custom logic? If so are there API-calls I can make to set future and unpublish date on post save?

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [September 7, 2018, 11:14am UTC](https://forum.litium.com/t/post-publish-date-range/235/4 "2018-09-07T11:14:25Z")

</div>

What option do you not see?

To time publish via UI it is on the publish button and unpublish date under advanced is the UI for unpublish.

If you want to build some own tool to manage these settings you can do it with:

```auto
page.PublishLater(DateTime.Now.AddDays(2), false, token);
page.SetEndPublishDateTime(DateTime.Now.AddDays(7), token);

```
