FDATE( ) Function

Example   See Also

Returns the last modification Date or DateTime for a file.

Syntax

FDATE(cFileName [, nType])

Returns

Date

Arguments

cFileName

Specifies the name of the file whose last modification date FDATE( ) returns. cFileName can include a path with the file name. If a path is not included with the file name, Visual FoxPro searches for the file in the default directory and in any directories or folders specified with SET PATH.

nType

Specifies that FDATE( ) returns the last modification date or DateTime of the file specified with cFileName. If nType is 0, the last modification date is returned. Including 0 is identical to omitting nType. If nType is 1, the last modification DateTime is returned.

Remarks

The Date or DateTime value that FDATE( ) returns is assigned to the file by the operating system.

Use LUPDATE( ) to determine the last modification date for an open table.