Utilities.DateTimeToSystemTime Method

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


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.


Utilities.DateTimeToSystemTime(DateTime, SystemTime)

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

Applies To

The method is applied to the following object:


The method has the following parameters:


Specifies the desired date and time.


Holds the converted Time in the TSystemTime format.

Result Value



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