on 2025 Jan 12 5:48 AM
Hi .. We have a requirement to dynamically substract minutes/hours from current time.
Here is sample Groovy script, working fine in Groovy compiler. but in SAP Iflow, getting error saying that
"No such property: minutes for class: java.lang.String"
import groovy.time.TimeCategory
import java.text.SimpleDateFormat
DateTo = new Date()
use( groovy.time.TimeCategory ) {
def value = 200
DateFrom = DateTo - value.minutes
}
Could you please help.
Thank you.
Request clarification before answering.
User | Count |
---|---|
52 | |
10 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.