Question and Answer Database FAQ841C.txt How do I get a file's date and time stamp? Category :VCL Platform :All Product :C++Builder 1.x Question: How do I get the Data / Time stamp of a file to a string Answer: AnsiString __fastcall GetFileDate(AnsiString TheFileName ) { int FHandle; FHandle = FileOpen(TheFileName, fmOpenRead); return DateTimeToStr(FileDateToDateTime(FileGetDate(FHandle))); } 7/2/98 10:32:32 AM
Last Modified: 01-SEP-99