getCalcDateTime
Gets a DateTime as a compareable number with a given accuracy.
Parameters
dateTime value or controlId
accuracy - "seconds" (default), "minutes" or "hours"
Example Usages
Example 2 calculation
Return Values
If accuracy is "minutes" the result is divided by 60 to convert from seconds to minutes. If accuracy is "hours" the result is further divided by 3600 (60 seconds * 60 minutes) to convert from seconds to hours. The calculated result is rounded to the nearest integer using Math.round. The final rounded result is returned.
Last updated
Was this helpful?