Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I put in my script the following expression
SET vPeriod= Year(Today())&Month(Today());
I am expecting to have the result : 202004
Please could you help me to confirm if this expression gives the result above or not.
Many thanks in advance for your help.
Have a nice day !
Year(Today())&num(Month(Today()),'00')
Change your SET to LET, and then try like:
LET vPeriod= Year(Today())*100 + Month(Today());
Or like string operation shown above by Frank
Year(Today())&num(Month(Today()),'00')
Change your SET to LET, and then try like:
LET vPeriod= Year(Today())*100 + Month(Today());
Or like string operation shown above by Frank
Hello @Frank_Hartmann , @tresesco ,
The expression works without any issue.
Thank you for your quick and effective solution. 👍