How Can i Get Previous year and Current Year based on Current date

Hi Developers,

Here is issue i want to display Previous year and current year on separate columns in report

Based on Current date so How can i solve this one…pls

Welcome to DUG

Please read help files and search the forum


InputDate := TODAY;

Year := DATE2DMY(InputDate,3);

PrevYear := Year - 1;