Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-14T12:41:55.247Z
Answers.LastActivityDate: 2016-01-14T12:41:55.247Z
Answers.UserDisplayName: Ian Nebbiolo
Body: <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>
  
Tags: <guest-entries><postdate><comments>
Title: Adding a postDate with Guest Entries
ThreadText: # 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.
  
  `<input type="hidden" name="postDate" value="{{ now|date("Y-m-j H:i:s") }}" />`
  
  This adds the postDate using Craft's `YYYY-MM-DD HH:MM:SS` format.
  
  
  ---
  
  