<p>You can add a hidden field for your postDate to your GuestEntry form, e.g.</p>

<p><code>&lt;input type="hidden" name="postDate" value="{{ now|date("Y-m-j H:i:s") }}" /&gt;</code></p>

<p>This adds the postDate using Craft's <code>YYYY-MM-DD HH:MM:SS</code> format.</p>

CC BY-SA 3.0
2016-01-14T12:41:55.247Z
2016-01-14T12:41:55.247Z
Ian Nebbiolo
<p>Is it possible to set the postDate for a new (disabled) entry created using the GuestEntries plugin?</p>

<p>Otherwise when posting a GuestEntry the postDate is not set until the entry is enabled or re-saved from Craft.</p>

<hr>

<p><em>Posting this with an answer as it may be useful to other people. If there are better ways to do this please add them.</em></p>

<guest-entries><postdate><comments>
Adding a postDate with Guest Entries
# Adding a postDate with Guest Entries

(Asked by: username_0 on 2016-01-14)

Is it possible to set the postDate for a new (disabled) entry created using the GuestEntries plugin?

Otherwise when posting a GuestEntry the postDate is not set until the entry is enabled or re-saved from Craft.

---

*Posting this with an answer as it may be useful to other people. If there are better ways to do this please add them.*

**Tags:** guest-entries, postdate, comments


---

## 1 answers

### Answer by username_0 on 2016-01-14. Score: 3 | Accepted answer

You can add a hidden field for your postDate to your GuestEntry form, e.g.

This adds the postDate using Craft's `YYYY-MM-DD HH:MM:SS` format.


---

