How show the name of the last month in a report

DarkHorseDarkHorse Member Posts: 389
Dear folks, I'd like to know how can I put the name of the past month on a report. I mean to create a varible and, if we're now on July, the variable shows June. Obviously it should change automatically as the month passes.
Thanks in advance.

Comments

  • AlbertvhAlbertvh Member Posts: 516
    Hi,
    TextFld := FORMAT(CALCDATE('<-1M>',TODAY),0,'<Month Text>');
    

    Where you can replace TODAY with your Date variable.
    Hope this helps
  • DarkHorseDarkHorse Member Posts: 389
    It's perfect!!!, =D> thanks for your help.
    Thanks again.
Sign In or Register to comment.