Command Prompt for Windows




Command FILEDATE

Function:

Get the last modified date of a file. The file date is stored in an environment variable called FILEDATE.

Syntax:

FILEDATE [drive:][path]filename
[drive:][path]filenameSpecifies the file name.

Note:

Relative paths are allowed for parameter path.

Wildcards are not allowed for parameter filename.

The date retrieved is formatted according to the international format set in the Control Panel. For example, the USA date format is typically mm-dd-yyyy and the Australian date format is typically dd-mm-yyyy.

Also see command FILETIME and Batch Files.