如何将日期传递到ColdFusion集合中以进行搜索 [英] How to pass a date into a ColdFusion collection to be searched
本文介绍了如何将日期传递到ColdFusion集合中以进行搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用ColdFusion集合来搜索事件,我需要将日期作为 mmm传递到集合中,以便可以对其进行搜索。每次尝试都会出现错误。
I'm using a ColdFusion collection to search events and I need to pass a date into the collection as a "mmm" so it can be searched. Every time I try I get an error.
custom4="DateFormat(start_date, "mmm")"
更新:
我正在尝试搜索当年的月份
Update: I'm trying to search "month" of the current year
推荐答案
您应使用上面的代码
custom4=dateFormat(start_date, "mmm")
(删除外部双精度报价)
(Remove the outer double quotes)
这篇关于如何将日期传递到ColdFusion集合中以进行搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文