Re: Batch file III
From: Will DeWitt Jr. (edge_at_NOSPAM.icehouse.net)
Date: 01/27/05
- Next message: Mark G. Zeringue: "Re: Installer"
- Previous message: QHenrick_Hellstr=F6m_=5BStreamSec=5D=22?=: "Re: Why 64bit Delphi compiler from Borland may be meaningless!"
- In reply to: Crazy Horse's crazier little brother: "Re: Batch file III"
- Next in thread: Crazy Horse's crazier little brother: "Re: Batch file III"
- Reply: Crazy Horse's crazier little brother: "Re: Batch file III"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Jan 2005 08:29:43 -0800
Crazy Horse's crazier little brother wrote:
> > How about this for getting your filename:
> > DecodeDate(Now, wYear, wMonth, wDay);
> > sFileForToday := Format('%.2d%.2d%.2d.txt', [wYear mod 1000, wMonth,
> > wDay]);
>
> Beauty!
Or, this. =)
sFileForToday := Format('%s.txt', [FormatDateTime('yy.mm.dd', Now)]);
// Untested, should work
Will
-- Want native support in Delphi for AMD64/EM64T? Vote here-- http://qc.borland.com/wc/qcmain.aspx?d=7324
- Next message: Mark G. Zeringue: "Re: Installer"
- Previous message: QHenrick_Hellstr=F6m_=5BStreamSec=5D=22?=: "Re: Why 64bit Delphi compiler from Borland may be meaningless!"
- In reply to: Crazy Horse's crazier little brother: "Re: Batch file III"
- Next in thread: Crazy Horse's crazier little brother: "Re: Batch file III"
- Reply: Crazy Horse's crazier little brother: "Re: Batch file III"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|