Platforms to show: All Mac Windows Linux Cross-Platform
DifferenceMBS(extends StartDate as date, EndDate as date) as DateDifferenceMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | Basic | MBS Util Plugin | 7.4 | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No | Desktop, Console & Web |
Returns nil on any errors. (one of the dates is nil or property getter don't work)
Valid only for dates from the gregorian calendar.
Calculates the difference between the older and newer date. The dates are sorted, so the difference is always a positive.
You can see Swap property to see if first date is after second date.
See also:
Some examples using this global method:
DifferenceMBS(extends StartDate as dateTime, EndDate as dateTime) as DateDifferenceMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | Basic | MBS Util Plugin | 19.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Returns nil on any errors. (one of the dates is nil or property getter don't work)
Valid only for dates from the gregorian calendar.
Calculates the difference between the older and newer date. The dates are sorted, so the difference is always a positive.
You can see Swap property to see if first date is after second date.
Please make sure both dates are in the same timezone.
See also:
Some examples using this global method:
The items on this page are in the following plugins: MBS Util Plugin.