How to pass a date into a ColdFusion collection to be searched
问题 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 回答1: You should use the above code like custom4=dateFormat(start_date, "mmm") (Remove the outer double quotes) 回答2: Quotes aren't the problem (and the suggestion of removing them actually causes an error). The problem is DateFormat()