Utilities.FileGetDate Method

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


The Utilities.FileGetDate method returns the date and time of the specified file as an integer value. To convert the resultant integer to a Variant value storing the date and time, use the FileDateToDateTime function.



Handle [in]    Required    Integer    
Result Integer

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the handle of the file whose timestamp you want to get. This handle is returned by the FileOpen or FileCreate routine.

Result Value

The integer value that holds the OS timestamp of the specified file.


This method is obsolete. It is supported for backward compatibility only. To get the date and time attributes of a file, use the aqFile.GetLastWriteTime or method aqFileInfo.DateLastModified property.

See Also

Working With Dates
GetLastWriteTime Method
DateLastModified Property
GetLastAccessTime Method
DateLastAccessed Property
GetCreationTime Method
DateCreated Property
OpenBinaryFile Method
OpenTextFile Method

Highlight search results