ISDateTimeUtils.ConvertStringWDDateRangToWeeks

Description

This function converts the specified count of weeks and days to weeks.

Syntax

object.ConvertStringWDDateRangToWeeks(aDataRange)

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

Return Value

Single

Returns the specified count of weeks and days converted to weeks.

Example

Display the result of converting of the specified count of weeks and days to weeks.

Dim aDateTimeUtils
Dim aDataRange
Dim aMessage 

Set aDateTimeUtils = Profile.DateTimeUtils
aDataRange = "2w 3d" 

aMessage = aDateTimeUtils.ConvertStringWDDateRangToWeeks(aDataRange) & " weeks"

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface the count of weeks and days in week format cannot be found.

Version information

Added in v7.8.0