I want to generate a report for last month and i want to generate in a loop where
eg yesterdat date...$timestr=time2str ("%Y%m%d",time-86400);
so that when i run the program it should a report for last 30 or 31 days depends on the number of days in a month