Navigation: thinBasic Modules > File > 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
MSGBOX 0, File_GetDate("c:\windows\explorer.exe", %Date_TIME_FILE_CREATION)
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |