SetCurrent Method for LCDatetime

This method sets the Datetime value to the current system datetime, including time zone and Daylight Savings Time setting.

Defined In

LCDatetime

Syntax

Call lcDatetimeObject.SetCurrent

Example

Option Public
Uselsx "*lsxlc"  
Sub Initialize
  Dim stopWatch As New LCDateTime
  stopWatch.setcurrent
  Print "The time is " & stopWatch.text
End Sub

Example Output

The time is 09/08/1999 05:22:02.85 PM