drupal - 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? :)
解决方案
推荐阅读
- android - Android 注释代码生成 - Android 类
- javascript - 在 React 函数中没有正确读取输入(没有 JSX)
- sql - 将记录插入一个有 180 列的表中
- python - python导入相对路径'未找到模块错误'
- cudd - BLIF 输入到图形输出(文本和图片)
- x86 - 为什么 LOCK 在 x86 上是一个完整的障碍?
- ios - 与 RadSideDrawer 一起使用时,NativeScript page-router-outlet 在 iOS 上总是占据 100% 的高度
- rust - 如何在匹配结构中设置所需的返回类型?
- xml - 'sequence' 的内容必须匹配注解?,(元素 | 组 | 选择 | 序列 | 任何)*)
- python-3.x - Python比较两个Excel的id值和其他列中的“归档”输出在新excel中相对于ID列的差异