> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uplifter.app/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I set when a discount code is valid?

> Use the Valid from and Valid to dates to control a code's active window.

<Note>
  **Must know**

  * **Valid from** and **Valid to** are dates only — there's no time-of-day field.
  * A future **Valid from** date makes the discount **Scheduled** until that day arrives, then it turns Active on its own.
  * Leaving **Valid to** blank means the code never expires by date (it shows "No end date").
</Note>

A discount's validity window decides the days a customer can actually redeem it. You set it on the **General** step of the wizard.

<Steps>
  <Step title="Set Valid from">
    Pick the first day the code should work. If that day is today or in the past, the code is live as soon as you publish it. If it's in the future, the discount is saved as **Scheduled** and starts automatically on that date.
  </Step>

  <Step title="Set Valid to (optional)">
    Pick the last day the code should work, or leave it blank for no expiry. The end date can't be earlier than the start date. In the dashboard, the code's status flips to **Expired** the day after this date.
  </Step>
</Steps>

One thing to watch on the final day: while the dashboard status stays Active through the whole end date, redemption at checkout can cut off earlier in the day on that date rather than at midnight. If you need a code to stay usable through a specific day, set **Valid to** the day after your true deadline to be safe.

Dates aren't the only thing that can end a code — hitting its total-redemptions limit also expires it. See the related articles for limits and statuses.

**Related:** [What do the discount statuses mean?](/club/discounts/discount-statuses-explained) · [How do I limit how many times a code can be used?](/club/discounts/limit-how-many-times-a-code-is-used) · [How do I create a discount code?](/club/discounts/create-a-discount-code)
