BPM to change date of quote expiration date

Hello, could someone help with e9 code i have -

This changes to expiration date on quotehead to add 30-day from today’s date, but unable to get syntax correct it Kinetic.

I thought c# would be DateTime.Today.AddDays(30) but is not working for me

E9 --------
Add-interval( Today , 30, ‘days’)

Many thanks in advanced.

yes it is - DateTime.Today.AddDays(30)

My epicor client was showing a error


but on my server it was working ok!!

MMMMMM.

Do you have .NET 6.0 loaded on your client station? BPMs validate locally and it needs the .NET libraries to do so.

1 Like

If you are Multi-Company use the following to honor TimeZones.

Ice.Lib.CompanyTime.Today(CompanyID);
Ice.Lib.CompanyTime.Today(); // CurrentCompany Defaulted