> For the complete documentation index, see [llms.txt](https://8bit-1.gitbook.io/solibrary/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://8bit-1.gitbook.io/solibrary/end-date-guard.md).

# End Date Guard

After that date

minting will fail

Candy MachineOwner: Candy Machine Core ProgramCandy GuardOwner: Candy Guard ProgramGuardsendDate- Date...

Mint from

*Candy Guard Program*

Access Control

Mint from

*Candy Machine Program*

Mint Logic

Asset

[React Flow](https://reactflow.dev/)

### Guard Settings <a href="#guard-settings" id="guard-settings"></a>

The End Date guard contains the following settings:

* **Date**: The date after which minting is no longer allowed.

Set up a Candy Machine using the End Date guard

JavaScript

```
import { dateTime } from "@metaplex-foundation/umi";

create(umi, {
  // ...
  guards: {
    endDate: some({ date: dateTime("2022-01-24T15:30:00.000Z") }),
  },
});
```

API References: [create](https://mpl-core-candy-machine.typedoc.metaplex.com/functions/create.html), [EndDate](https://mpl-core-candy-machine.typedoc.metaplex.com/types/EndDate.html)

### Mint Settings <a href="#mint-settings" id="mint-settings"></a>

*The End Date guard does not need Mint Settings.*

### Route Instruction <a href="#route-instruction" id="route-instruction"></a>

*The End Date guard does not support the route instruction.*
