Utilities.DateTimeToSystemTime Method

Applies to TestComplete 15.10, last modified on December 01, 2021
This method is obsolete. See the Remarks section below.

Description

The Utilities.DateTimeToSystemTime method converts a Variant value, which holds date and time, to a TSystemTime value and returns this value via the SystemTime parameter. The resultant value can then be used in calls to Windows API functions.

Declaration

Utilities.DateTimeToSystemTime(DateTime, SystemTime)

DateTime [in]    Required    Variant    
SystemTime [out]    Required    TSystemTime    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

DateTime

Specifies the desired date and time.

SystemTime

Holds the converted Time in the TSystemTime format.

Result Value

None.

Remarks

Currently, this function works only in VBScript and DelphiScript scripts.

This method is obsolete. It is supported for backward compatibility only.

See Also

Working With Dates
Working With Time
Today Method
Now Method
Calling Win32 API Functions

Highlight search results