Returns the last modification Date or DateTime for a file.
FDATE(cFileName [, nType]) |
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.
Return Value
Date
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.
Copy Code | |
|---|---|
? FDATE('FOXUSER.DBF', 1) && Displays the last modification DateTime | |
See Also
Reference
FTIME( ) FunctionLUPDATE( ) Function
DATE( ) Function
Other Resources
FunctionsLanguage Reference (Visual FoxPro)
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08