I currently track a parameter from the first of the year and the first of the current month.
But I would also like to track all of last month.
Here is what I have so far that works - in the WHERE statement of the query.
How do I do one for last month with is a moving target?
But I would also like to track all of last month.
Here is what I have so far that works - in the WHERE statement of the query.
Code:
<cfset today = CreateODBCDate(Now())>
<CFSET tektips = CreateDateTime(year(today), 1, 1, 0, 0, 0)>
<CFSET sinceThe1st = CreateDateTime(year(today), month(today), Day(tektips), hour(tektips), minute(tektips), second(tektips))>
<CFSET sinceThe1stOfTheYear = CreateDateTime(year(today), month(tektips), Day(tektips), hour(tektips), minute(tektips), second(tektips))>
How do I do one for last month with is a moving target?