It looks like you're new here. Sign in or register to get started.
Calendar.SETRANGE("Period Type",Calendar."Period Type"::Month); Calendar.SETRANGE("Period Start","Posting Date"); Months := Calendar.COUNT -1;
Answers
Months - Counts the Number of Months
Thanks.
Calendar.SETRANGE("Period Start",FromDate,ToDate);
or
Calendar.SETFILTER("Period Start",GETFILTER("Posting Date"));
Now you are applying the "Posting Date" as a filter.
But you'll need to think it over. For Example if you say 02/Jan/2009..30/Sep/2009 how many months do you consider this to be?