ISDateTimeUtils.Now

Description

This function returns the local date and time.

Syntax

object.Now()

Part Attribute Type Description
object Required
The object always implements the ISDateTimeUtils interface

Return Value

DateTime

Returns the local date and time.

Example

Display the local date and time.

Dim aDateTimeUtils
Dim aCurrentDT
Dim aMessage 

Set aDateTimeUtils = Profile.DateTimeUtils
aCurrentDT = aDateTimeUtils.Now

aMessage = "Local Date and Time: " & aCurrentDT 

Profile.MsgBox(aMessage)  
Note:

In Profile Client v8 on User Interface the local date and time can be found in Help > About > Time Info > Local Timeor in Special > World Clock > Local Time.

Version information

Added in v7.9.0