intYear := DATE2DMY(TODAY,3);
FOR i := 1 TO 12 DO BEGIN
datStartDate := DMY2DATE(1,i,intYear);
datEndDate := CALCDATE('<+1M-1D>',datStartDate);
MESSAGE('Month %1: %2 - %3',i,datStartDate,datEndDate);
END;
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
intYear := DATE2DMY(TODAY,3);
FOR i := 1 TO 12 DO BEGIN
datStartDate := DMY2DATE(1,i,intYear);
datEndDate := CALCDATE('<+1M-1D>',datStartDate);
MESSAGE('Month %1: %2 - %3',i,datStartDate,datEndDate);
END;
Or try
datEndDate := CALCDATE('CM',datStartDate);
Hi Jamie
You might find these useful for reference as well
'-CM' = First Day and 'CM' = Last Day
You also have the same for week '-CW' and CW
Answers
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com
Worked perfectly.
Jamie