Converting SQL into coldfusion for DateDiff -
i have date field have manipulate, have query gets , query have assign variety of things, 1 of late counters. accomplish have calculate less or equals 90 days or greater or equals 90 days.
how can this
the answer below not looking for
all dates last 90 days?
select updatedate active xxxdate >= <cfqueryparam cfsqltype="cf_sql_date" value = "#dateadd('d', -90, now())#"> , xxxdate < <cfqueryparam cfsqltype="cf_sql_date" value = "#dateadd('d', 1, now())#">
note this:
cfsqltype="cf_sql_date"
will strip time portion away results of datediff function result.
Comments
Post a Comment