I have a list of dates on a page and I want to filter out all past dates so that only future dates will show.
I have the following code but cannot see why it doesn't work.
I have a list of dates on a page and I want to filter out all past dates so that only future dates will show.
I have the following code but cannot see why it doesn't work.
How is appttime defined in your template? I think it will need to be in the same format as $today. That's what I would check first.
This is the full template
I think when the date is stored it's set in the standard format of 'Y-m-d H:i:s'. The formatting of field happens during runtime in the template handler, instead of the save/edit process.
If that still doesn't work you can check the database, or use the <perch:showall/> to see the unformatted value