Under Delphi, I use this (windows). Will work under FPC too probably.
function getcreationtime(fn:string;var v: TDateTime):Boolean;
var fl:TSearchRec;
begin
result:=GetFileInformation(fn,fl);
if result then
v:=filetimetodatetime(fl.FindData.ftCreationTime);
end;