PROCÉDURE
Arcade is an expression language that can be used across the ArcGIS platform. The Arcade Date functions provide methods for creating and acquiring properties of date objects. For example, the DateAdd() and DateDiff() functions can be used to adjust the desired date based on a specified interval, and the Now() function to get the client current local time.
This article provides the steps to use Arcade in ArcGIS Pro to calculate the difference between two date fields using the DateDiff() function.
var startDate = Date($feature.startDateField) var endDate = Date($feature.endDateField) var result = DateDiff(endDate, startDate, 'minutes') return result
Note: To calculate the difference between the two date fields in other units, such as hours, seconds, or days, use the same expression and replace 'minute' to the desired unit.
Obtenir de l’aide auprès des experts ArcGIS
Télécharger l’application Esri Support