Posted By

cdicarlo on 02/10/11


Tagged

crystal reports


Versions (?)

Fiscal year


 / Published in: Other
 

  1. local numbervar y := year({casemain.schedcase_start_datetime});
  2. local numbervar m := month({casemain.schedcase_start_datetime});
  3. local stringvar fy := "";
  4.  
  5. if(m <= 3) then
  6. fy := totext(y - 1, 0) + " / " + totext(y, 0)
  7. else
  8. fy := totext(y, 0) + " / " + totext(y + 1, 0);
  9.  
  10. fy;

Report this snippet  

You need to login to post a comment.