Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
How to sum minutes in a datetime field using Groovy? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to sum minutes in a datetime field using Groovy?

Received Response
12
Views
1
Comments
edited Apr 26, 2022 4:30PM in Sales 1 comment

**This post was created as part of a How to Service Request (SR)

Release:

22A

Summary of the question:

We are writing a groovy script and need to sum the minutes in a datetime field.


The script has this format:

def NewDateTime = CreationDate

NewDateTime = NewDateTime + 2 minutes // "2 minutes" is a generic argument to this example.


Can anyone help us with a function to do this?


Supporting Documents if any:

None

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!