ISDateTimeUtils.CompareWeekRangesByDays

Description

This function returns True if the specified week ranges are equal by days.

Syntax

object.CompareWeekRangesByDays(aWeekRange1, aWeekRange2)

Part Attribute Type Description
object Required
The object always implements the ISDateTimeUtils interface
aWeekRange1 In, Required
Single
The specified count of weeks and days
aWeekRange2 In, Required
Single
The specified count of weeks and days

Return Value

bool

Returns True if the specified week ranges are equal.

Example

Display the result of comparison of the specified week ranges.

Dim aDateTimeUtils 
Dim aWeekRange1
Dim aWeekRange2
Dim aMessage

Set aDateTimeUtils = Profile.DateTimeUtils
aWeekRange1 = aDateTimeUtils.ConvertStringWDDateRangToWeeks("4w 3d")
aWeekRange2 = aDateTimeUtils.ConvertStringWDDateRangToWeeks("3w 4d")

aMessage = aDateTimeUtils.CompareWeekRangesByDays(aWeekRange1, aWeekRange2)

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface week ranges cannot be compared.

Version information

Added in v7.8.0