guest-entries
guest-entries copied to clipboard
How to set postDate in submission
Hi,
I have guest entries being submitted but disabled by dfault (so they can be checked before being published)
However, the post Date appears to be blank.
How can I set the date in the form to the date is the date/time as of the submission?
<input type="hidden" name="postDate" value="{{ now|date("Y-m-j H:i:s") }}" />
Billy’s answer is correct!
We’ve added all the properties that can be sent with a submission to the readme, including postDate and expiryDate.