Re: Batch file III

From: Will DeWitt Jr. (edge_at_NOSPAM.icehouse.net)
Date: 01/27/05


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


Relevant Pages