Platforms to show: All Mac Windows Linux Cross-Platform

Back to DateDifferenceMBS class.

DateDifferenceMBS.Day as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The day of the date difference.

(Read only property)

DateDifferenceMBS.EndDate as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The end date used to do the calculation.

Value can be DateTime or Date depending of method used.
(Read only property)

DateDifferenceMBS.EndDay as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The day of the end date.

(Read only property)

DateDifferenceMBS.EndHour as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The hour of the end date.

(Read only property)

DateDifferenceMBS.EndMinute as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The minute of the end date.

(Read only property)

DateDifferenceMBS.EndMonth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The month of the end date.

(Read only property)

DateDifferenceMBS.EndSecond as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The second of the end date.

(Read only property)

DateDifferenceMBS.EndTotalSeconds as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total seconds value of the end date.

(Read and Write property)

DateDifferenceMBS.EndYear as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The year of the end date.

(Read only property)

DateDifferenceMBS.Hour as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The hour of the date difference.

(Read only property)

DateDifferenceMBS.Minute as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The minute of the date difference.

(Read only property)

DateDifferenceMBS.Month as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The month of the date difference.

(Read only property)

DateDifferenceMBS.Ready as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether the date calculation has been performed.

Using the constructor with nil dates can lead into an invalid state in which ready is false.
(Read only property)

DateDifferenceMBS.Second as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The second of the date difference.

(Read only property)

DateDifferenceMBS.StartDate as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The start date of the date used.

Value can be DateTime or Date depending of method used.
(Read only property)

DateDifferenceMBS.StartDay as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The day of the start date.

(Read only property)

DateDifferenceMBS.StartHour as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The hour of the start date.

(Read only property)

DateDifferenceMBS.StartMinute as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The minute of the start date.

(Read only property)

DateDifferenceMBS.StartMonth as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The month of the start date.

(Read only property)

DateDifferenceMBS.StartSecond as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The second of the start date.

(Read only property)

DateDifferenceMBS.StartTotalSeconds as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total seconds value of the start date.

(Read and Write property)

DateDifferenceMBS.StartYear as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The year of the start date.

(Read only property)

DateDifferenceMBS.Swap as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Whether dates have been swapped.

Dates are swapped if enddate is before startdate.
(Read only property)

DateDifferenceMBS.TotalDay as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The number of days between
Example
dim d as new date(2011, 9, 25)
dim e as new date(2012, 1, 1)

dim diff as new DateDifferenceMBS

if diff.Calc(d, e) then
MsgBox str(diff.TotalDay)+" days between dates." // should be 98
end if

Our day, month and year properties are about how many days, months and years are between start and end dates.
This property gives you the total number of days.
So day may be 6 and month be 3 and totaldays could be 98 if there are two months with 31 days included and one with 30 days.
(Read only property)

DateDifferenceMBS.TotalSeconds as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 12.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The total seconds value of the difference between the dates.

(Read and Write property)

DateDifferenceMBS.Year as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Basic MBS Util Plugin 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The year of the date difference.

(Read only property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...