Share via


FDATE( ) Function

Returns the last modification Date or DateTime for a file.

FDATE(cFileName [, nType])

Return Values

Date

Parameters

  • 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.

Example

The following example uses FDATE( ) to display the last modification DateTime for Foxuser.dbf, the Visual FoxPro resource file.

? FDATE('FOXUSER.DBF', 1)  && Displays the last modification DateTime

See Also

FTIME( ) | LUPDATE( ) | DATE( ) Function