In a report i have date variable StartDtApr and EndDtApr it will filer the data for the month of April, Same way for the all next month.
I want to set the date by default for StartDtApr := 01042020d EndDtApr := 30042020D i have set it hard coded,
i don't want it hard coded.
Since you did not ask a question, I can only assume that you like to know how to calculate these certain dates. Try:
startDate := CALCDATE('<-CM>',someDate);
endDate := CALCDATE('<CM>',someDate);
In short i want the starting and ending date of every month
Try search or see the related posts below this. This question has been asked and answered many many times and there are many ways to do it. Here are a few:
Dear Mr. Erik,
i had searched earlier but this is not what i actually needed. let me explain in detail what i want,
i have 12 variables monthwise
For each month i want starting and ending date, i cannot use current month function to set the start and end date bcoz i will run the report every month
Time being i have written hardcoded
Why can't you use that function? Use variables.
In my report im showing the container details data in which it show for the current month container details and in total is count no of containers
But along with this i want total no of container for all the previous month.