如何将日期传递到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)