首页 > 解决方案 > Close Date isn't filtering as a date, but as a String. How can this be resolved?

问题描述

This is in Drupal 9.  I have a content type that allows webforms to be attached and under form settings, the form is scheduled to begin on an specified Open Date and end on a specified Close date.  In the view, I display only those content types with the form attachment.  That was the easy part.  The hard part is trying to figure out how to filter the form based on the forms' close date. I've googled and have seen others with a similar issue, except haven't found a solution.  It appears that the form date reads as a string, so when I add it as a filter, the comparison operators displayed would be the same ones used when comparing strings.  This isn't going to work since I need to test whether the close date is greater than TODAY. 

I'm posting this in hopes that someone else might have come across this issue and discovered a way to fix it.  Anyone? :)

标签: drupaldrupal-viewsdrupal-webformdrupal-9

解决方案


推荐阅读