Torrent Girl wrote: >When I use the following in query: > >WHERE dateJoined BETWEEN #DateFormat(MonthStart,"mm/dd/yyyy")# AND >#DateFormat(MonthEnd,"mm/dd/yyyy")# > >I get the following error: > >[Macromedia][Oracle JDBC Driver][Oracle]ORA-00932: inconsistent datatypes: >expected DATE got NUMBER > > > Try wrapping both dateformats in cfqueryparam with sql type of date and hopefully that should sort you out.
<cfqueryparam cfsqltype="cf_sql_date" value="#DateFormat(MonthEnd,"mm/dd/yyyy")#"> Stephen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:987 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
