Shane
2008-07-20 18:07:34 UTC
i am not getting the right date on my files when i look at the ModifiedDate
see code below
idFTP1.Connect;
idFTP1.ChangeDIr('/public_ftp/data_files');
idFTP1.List(nil, '*.dat');
for I:= 0 to idFTP1.DirectoryListing.Count-1 do
begin
AModDate := idFTP1.DirectoryListing[I].ModifiedDate;
if AModDate > gLastDownLoadDate then
begin
lbxFiles.Add(idFTP1.DirectoryListing[I].FileName);
end;
end;
The year is showing as 2007 - when the files are stamped with 2008
what is going on?
i added IdAllFTPListParsers to my uses clause
see code below
idFTP1.Connect;
idFTP1.ChangeDIr('/public_ftp/data_files');
idFTP1.List(nil, '*.dat');
for I:= 0 to idFTP1.DirectoryListing.Count-1 do
begin
AModDate := idFTP1.DirectoryListing[I].ModifiedDate;
if AModDate > gLastDownLoadDate then
begin
lbxFiles.Add(idFTP1.DirectoryListing[I].FileName);
end;
end;
The year is showing as 2007 - when the files are stamped with 2008
what is going on?
i added IdAllFTPListParsers to my uses clause