Hi, friend!
how to get the number of mondays from 1 month? For example, October has 5 Mondays (2, 9, 16, 23, 30). for November = 4 Mondays.
Please let me know to get this,
Thank You
Hi, friend!
how to get the number of mondays from 1 month? For example, October has 5 Mondays (2, 9, 16, 23, 30). for November = 4 Mondays.
Please let me know to get this,
Thank You
Hi,
you can make use of dayOfWk as below.
static void WeekDays(Args _args)
{
Counter weekMonDays;
date start;
date end;
;
start = mkDate(1,9,2023);
end = mkDate(12,9,2023);
// Use of dayOfWk
while(start <= end)
{
if (dayOfWk(start) == 2)
weekMonDays++;
start++;
}
info(strfmt("Modayes days: : %1",weekMonDays));
}
Hi Gill_Damon,
thank you for your help… it really works.