Utilities.FileGetDate Method

Applies to TestComplete 14.10, last modified on June 5, 2019
This method is obsolete. See the Remarks section below.

Description

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.

Declaration

Utilities.FileGetDate(Handle)

Handle [in]    Required    Integer    
Result Integer

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Handle

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.

Remarks

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
aqFile.GetLastWriteTime Method
DateLastModified Property
aqFile.GetLastAccessTime Method
DateLastAccessed Property
aqFile.GetCreationTime Method
DateCreated Property
aqFile.OpenBinaryFile Method
aqFile.OpenTextFile Method

Highlight search results