Article View: borland.public.cppbuilder.nativeapi
Article #4525Re: Getting a Time Stamp in Builder 5
From: Antonio Felix
Date: Sun, 22 Jan 2006 17:50
Date: Sun, 22 Jan 2006 17:50
23 lines
1621 bytes
1621 bytes
Thomas escreveu:
> I've google and didn't really get my answere. I have MySql set up to do
> backups and its nameing format is as follows:
> DataBaseBackUp 20060123 2300.sql
> Thats Name Date and Time. Is there a function in Builder that I can't find
> that will give me the date in that format. I know
> there is I'm just missing it. Need the Year-Month-Day. Just a little brain
> dead on this one today.
> thanks.
>
>
Hi Thomas
If you have a TDateTime var you can use
MyDate.FormatString("yyyymmdd' 'hhnn")
to get that TDateTime in the desired format
Is that what you want?
HTH
Antonio
Technical Details
Message-ID:
<43d3c546$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43d3ada2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ca567ebc1089d7fe X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 22 Jan 2006 17:50:55 +0000 From: Antonio Felix <NoMail@Unknow.pt> User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Getting a Time Stamp in Builder 5 References: <43d3ada2$1@newsgroups.borland.com> In-Reply-To: <43d3ada2$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 87.196.76.12 Message-ID: <43d3c546$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1137952070 87.196.76.12 (22 Jan 2006 09:47:50 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail