New answers tagged postdate
2
votes
Accepted
Get entries with a specific post date
You’d need to define a range that begins today and ends tomorrow.
{% set startDate = startDate ?? now %}
{% set endDate = startDate|date_modify('+1 day') %}
{% set entries = craft.entries()
....
Top 50 recent answers are included
Related Tags
postdate × 50entries × 13
datetime × 13
control-panel × 4
archives × 4
templating × 3
localization × 3
search × 3
filter × 3
matrix × 2
query × 2
ordering × 2
format × 2
craft3 × 1
plugin-development × 1
plugins × 1
categories × 1
entry × 1
url × 1
config × 1
cache × 1
elementcriteriamodel × 1
sections × 1
ajax × 1
plugin-sproutforms × 1