def dateAddSubtractFormat = {dateTimeString, periodString, isAdd = true, isMinute = true, includeTime = true ->
xxx
}
|
Parameter
|
Description
|
Default Value
|
|---|---|---|
|
dateTimeString
|
dateTime string in one of the following formats:
• yyyy-MM-dd'T'HH:mm:ss.SSSZ
• yyyy-MM-dd HH:mm:ss
• yyyy-MM-dd
|
|
|
periodString
|
The time period to add or subtract.
|
|
|
isAdd
|
Specifies whether to add or subtract.
|
true
|
|
isMinute
|
Specifies whether time units are in minutes.
|
true
|
|
includeTime
|
Specifies whether formatted date-time values include time values.
|
true
|
"svmx_start_datetime": "dateAddSubtractFormat(fields.StartDateTime, fields.SVMXC__Driving_Time__c)"
"svmx_start_date": "dateAddSubtractFormat(fields.StartDateTime, fields.SVMXC__Driving_Time__c, true, true, false)",