We have a report that pulls data every morning at 3:00am for the previous day. The select statement for the timestamp is as follows:
{iAgentPerformanceStat.Timestamp} >=
cdatetime(year(currentdate-1),month(currentdate-1),day(currentdate-1),0,0,0) and
{iAgentPerformanceStat.Timestamp} <= cdatetime(year(currentdate-1),month(currentdate-1),day(currentdate-1),23,59,59)
I didn't write this report but I'm trying to re-engineer it so that it will pull data for the previous month. I don't need a range of dates, just the date of the first day in the last complete month: 11/01/2005 00:00:00. Any help or guidance will be greatly appreciated. Thanks,
Greg
{iAgentPerformanceStat.Timestamp} >=
cdatetime(year(currentdate-1),month(currentdate-1),day(currentdate-1),0,0,0) and
{iAgentPerformanceStat.Timestamp} <= cdatetime(year(currentdate-1),month(currentdate-1),day(currentdate-1),23,59,59)
I didn't write this report but I'm trying to re-engineer it so that it will pull data for the previous month. I don't need a range of dates, just the date of the first day in the last complete month: 11/01/2005 00:00:00. Any help or guidance will be greatly appreciated. Thanks,
Greg