FileDateTime Function


FileDateTime Function

Class

Microsoft.VisualBasic.FileSystem

Syntax

     Dim result As Date = FileDateTime(pathName) 


pathName (required; String)

The file from which to retrieve the date and time information

Description

The FileDateTime function retrieves the most recent modification date, which may be the same as the creation date, for an existing file.

Usage at a Glance

  • pathName can be either an absolute path or a relative path from the current directory.

  • An error occurs if the file does not exist.

  • The File class, discussed elsewhere in this chapter, includes distinct members that specifically retrieve either the creation date and time or the last modification date and time for a given file.

Version Differences

Visual Basic 2005 includes a My.Computer.FileSystem object that provides file management functionality.

See Also

File Class, File.Exists Method




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net