FILE_GetDate

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > FILE: functions working on files >

FILE_GetDate

 

Description

 

Returns a Date for a given file.

Returned Date depends on nChoice parameter.

 

Syntax

 

s = File_GetDate(sFile, nChoice)

 

Returns

 

Returns a string

The requested file date or an empty string if the function fails.

 

Parameters

 

Name

Type

Optional

Meaning

sFile

String

No

The full file name (path + file name) of the file you want the Date

nChoice

Number

No

Specify witch date to be retrieved. Could be only one of following values:

%DATE_TIME_FILE_CREATION

%DATE_TIME_LAST_FILE_ACCESS

%DATE_TIME_LAST_FILE_WRITE

 

Remarks

 

The returned string is in the "mm-dd-yyyy" format.

 

Restrictions

 

See also

 

File_GetTime, File_SetDateTime

 

Examples

 

USES "File"
 

MSGBOX 0, File_GetDate("c:\windows\explorer.exe", %Date_TIME_FILE_CREATION)