Help with Date variable with Expression

Stimulsoft Reports.JAVA discussion
Post Reply
TecnologiaMV
Posts: 53
Joined: Mon May 30, 2022 7:35 pm

Help with Date variable with Expression

Post by TecnologiaMV »

We are using a date type variable with range.
Within the range of values, we would like to use an expression to get the previous month, first and last day of the previous month.
Do we have any expression to get these values?

Thanks
Attachments
variavel data faixa.png
variavel data faixa.png (10.49 KiB) Viewed 2055 times
Lech Kulikowski
Posts: 6081
Joined: Tue Mar 20, 2018 5:34 am

Re: Help with Date variable with Expression

Post by Lech Kulikowski »

Hello,

You can use the DateSerial() function, for example:
DateSerial(Today.Year, Today.Month - 1, Today.Day)

Thank you.
Post Reply