DelphiFAQ Home Search:

Get a file's date time stamp

 

comments42 comments. Current rating: 3 stars (35 votes). Leave comments and/ or rate it.

Use this function to get a file's date and time stamp as a string:

function GetFileDate(TheFileName: string): string;
var
  f: integer;
begin
  f := FileOpen(TheFileName, 0);
  try
    Result := DateTimeToStr(FileDateToDateTime(FileGetDate(f)));
  finally
    FileClose(f);
  end;
end;

Comments:

You are on page 1 of 3, other pages: [1] 2 3
2006-11-18, 20:15:58
anonymous from China  
The Code is just so so! really!
2007-01-14, 20:48:46
anonymous from Dergachi in Kharkivs'ka Oblast', Ukraine  
rating
Hi!
Keep up the great work. It very impressive. Thanks much!
2007-03-28, 15:39:36
anonymous  
rating
Excellent web site I will be visiting often
2007-09-20, 19:51:50
marxjo@poczta.onet.pl from Szczecin, Poland  
Its too bad this function doesnt work with system files like pagefile.sys hiberfil.sys etc
Anyone having example on how to get 3 dates from files above would do much of good if they sent it to marxjo@poczta.onet.pl :)
2009-07-28, 03:27:50
anonymous from United States  
Hi,
Can we get the file timestamp where the file is prsent in another server.
2012-06-05, 21:33:07
anonymous from China  
<strong> http://www.coachout..strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong> http://www.myloveco..strong> <a href=' http://www.myloveco..g>Coach Outlet Online</strong></a><br />
<strong> http://www.buyincoa..strong> <a href=' http://www.buyincoa..g>Coach Outlet</strong></a><br />
<strong> http://www.cheapcoa..strong> <a href=' http://www.cheapcoa..g>Cheap Coach Handbags</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory Outlet</strong></a><br />
<strong> http://www.buycoach..strong> <a href=' http://www.buycoach..g>Coach Outlet Online</strong></a><br />
<strong>www.coachoutletonfactory.net</strong> <a href=' http://www.coachout..g>Coach Factory Outlet</strong></a><br />
<strong>www.coachoutletonline4you.us</strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong>coachfactoryoutletq.net</strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong>gotocoachoutlets.net</strong> <a href=' http://www.gotocoac..g>Coach Outlet Online</strong></a><br />
2012-07-23, 22:41:51
anonymous from United States  
2012-10-11, 04:00:40
anonymous from United States  



Here <a href=' http://www.cheapnor..'>cheap Womens North Face Windstopper</a> we also
<a href=' http://www.cheapnor..'>cheap Womens North Face Realization</a> offer Nike
<a href=' http://www.cheapnor..'>cheap Womens North Face Gore Tex</a> Kobe Kids
<a href=' http://www.cheapnor..'>cheap Womens North Face Down</a> Shoes, maybe you will
<a href=' http://www.cheapnor..'>cheap Womens North Face Denali</a> like it.The Nike Zoom
<a href=' http://www.cheapnor..'>cheap Womens North Face Apex Bionic</a> Hyperfuse XDR
<a href=' http://www.cheapnor..'>cheap Womens North Face 3 In 1</a> Black White Red Basketball Shoes features

lightweight <a href=' http://www.cheapnor..'>cheap North Face Polyester Mcmurdo</a> stability, an ultra-

lightweight <a href=' http://www.cheapnor..'>cheap North Face Pink Ribbon</a> design for explosive power on the

hardwood.Made <a href=' http://www.cheapnor..'>cheap North Face Greenland Jackets</a> with Nike Hyperfuse

technology <a href=' http://www.cheapnor..'>cheap North Face Jackets For Women</a> for breathability, strength and

toughness, nike <a href=' http://www.cheapnor..'>cheap North Face Ski Jackets</a> Zoom unit in the forefoot for low-

profile, super-responsive <a href=' http://www.cheapnor..'>cheap North Face Scythe Jackets</a> cushioning Heel and

forefoot <a href=' http://www.cheapnor..'>cheap North Face Jacket Lovers</a> outriggers for lateral stability during

quick <a href=' http://www.cheapnor..'>cheap North Face Jackets For Kids</a> cuts and jumps.Solid rubber outsole with

herringbone <a href=' http://www.cheapnor..'>cheap North Face Jackets For Men</a> pattern for traction. Foam collar <a

href=' http://www.cheapnor..'>cheap Mens North Face 3 In 1</a> for enhanced fit and comfort, Mesh half-innersleeve <a

href=' http://www.cheapnor..'>cheap Mens North Face Apex Bionic</a> for breathability and a lockdown fit, forefoot

<a href=' http://www.cheapnor..'>cheap Mens North Face Down</a>flex grooves
<a href=' http://www.cheapnor..'>cheap Mens North Face Down</a> for enhanced articulation and flexibility.It is so <a

href=' http://www.cheapnor..'>cheap Mens North Face Gore Tex</a> comfortable and flexible that it will help you score

<a href=' http://www.cheapnor..'>cheap Mens North Face Realization</a> on the court.This Nike Air Hypershox 2011

White Blue Basketball Shoes is made by Mesh, Leather and Rubber.It Breathes <a href=' http://www.cheapnor..'>cheap

Mens North Face Windstopper</a> Freely, Comfortable and Lightweight.
2012-10-11, 04:01:20
anonymous from United States  
http://www.cheapnor..47_58.html cheap North Face Osito Jackets
http://www.cheapnor..47_57.html cheap North Face Pink Ribbon
http://www.cheapnor..47_54.html cheap North Face Polyester Mcmurdo
http://www.cheapnor..47_52.html cheap Womens North Face 3 In 1
http://www.cheapnor..47_48.html cheap Womens North Face Apex Bionic
http://www.cheapnor..47_49.html cheap Womens North Face Denali
http://www.cheapnor..47_51.html cheap Womens North Face Down
http://www.cheapnor..47_50.html cheap Womens North Face Gore Tex
http://www.cheapnor..47_55.html cheap Womens North Face Realization
http://www.cheapnor..47_56.html cheap Womens North Face Windstopper
2012-10-19, 18:14:19
 
rating
twlcvdmq <a href=' http://ukpaydayloansti.co.uk/ '>pounds till payday</a> :-O <a href=' http://uspaydayloansti.com/ '>payday loans</a> eAAYF <a href=' http://paydayloanso..inete.com/ '>payday loans</a> >:-OOO <a href=' http://paydayloansnsa.com/ '>payday loans</a> 8761 <a href=' http://canadapayday..oanstr.ca/ '>no fax pay day loans</a> zDcomc
2013-02-04, 12:14:22
 
rating
avcnkjll <a href=' http://viagraonlinetd.com/ '>viagra online</a> >:-[ <a href=' http://cialisonlinetd.com/ '>cialis online</a> oJLWOz
2013-02-09, 01:35:19
 
rating
yuysaxzp <a href=' http://paydayloansvbc.co.uk/ '>payday loan</a> BQldsJ <a href=' http://paydayloansvbc.com/ '>payday loans</a> >:-OOO <a href=' http://paydayloansvbc.ca/ '>payday loan</a> 4720
2013-04-02, 23:03:30
 
rating
wtcpzurv http://buyviagradsb.com/ where can i buy viagra online 9158 http://buycialisdsb.com/ buy generic cialis qekVHR
2013-04-03, 08:57:25
 
rating
sbtzorix http://cheapviagradsb.com/ viagra cheap buy online 3460 http://cheapcialisdsb.com/ cheap generic cialis EmLvIp
2013-04-04, 02:27:04
 
rating
khkzbck http://genericviagradsc.com/ generic cheap viagra online 6159 http://genericcialisdsc.com/ generic cialis 3186
You are on page 1 of 3, other pages: [1] 2 3

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: