Page 1 of 1

Help with Date variable with Expression

Posted: Fri Nov 17, 2023 12:43 pm
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

Re: Help with Date variable with Expression

Posted: Mon Nov 20, 2023 7:49 pm
by Lech Kulikowski
Hello,

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

Thank you.