I'm trying to generate titles for a section's entries based off of the given post date (if it exists). Here's the configuration I've got in the Title Format field for this section's entry types:
New Arrivals for {% if postDate %}{{ postDate|date('M j, Y') }}{% else %}{{ now|date('M j, Y') }}{% endif %}
I expect that, upon saving each new entry, Craft would build a title based off of the post date. Unfortunately, it always builds off of the current date - even with a more straightforward title format configuration:
New Arrivals for {{ postDate|date('M j, Y') }}
I understand that the user doesn't have to fill out the post date fields, but it appears that Craft creates a post date for every entry (and even does so before it writes the date created field to the database).
With that in mind, why wouldn't the above title format configurations work? Am I missing something? Any and all help is appreciated.