Loading...
Gets a DateTime as a compareable number with a given accuracy.
dateTime value or controlId
accuracy - "seconds" (default), "minutes" or "hours"
brixxApi.getCalcDateTime(myDateTimeControl); brixxApi.getCalcDateTime(myDateTimeControl, "minutes"); brixxApi.getCalcDateTime(myDateTimeControl, "hours");
let durationInSeconds = brixxApi.getCalcDateTime(myDateTimeEnd) - brixxApi.getCalcDateTime(myDateTimeStart); let durationInMinutes = brixxApi.getCalcDateTime(myDateTimeEnd, "minutes") - brixxApi.getCalcDateTime(myDateTimeStart, "minutes"); let durationInHours = brixxApi.getCalcDateTime(myDateTimeEnd, "hours") - brixxApi.getCalcDateTime(myDateTimeStart, "hours");