Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Chan Kok Kiet
  Where is Chan Kok Kiet?
 Kuala Lumpur
 Malaysia
 Chan Kok Kiet
 To: Fred Cohen
  Where is Fred Cohen?
 Moorestown
 New Jersey - United States
 Fred Cohen
 Tags
Subject: RE: Possible to include datetime in file name?
Thread ID: 34024 Message ID: 34031 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: General VFP Topics
Date: Sunday, December 07, 2003 6:41:06 AM         
   


Hi,
You can use TTOC(datetime, 1) to get datetime string like "20031231010101" (2003-12-31 01:01:01). With this, your file name can be "sorted" properly either.

> I have a very valuable table that I wish to save before adding or subtracting data, which I do frequently. I've tried concatenating
> a name that includes TTOC(datetime()) and backing up using an ampersand before the concatenated variable , but it doesn't work . . . no error message, but a file with the new name doesn't show up in the target directory.
>
> Can anyone straigten me out on this?
>
> Fred888


I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...

ENTIRE THREAD

Possible to include datetime in file name? Posted by Fred Cohen @ 12/6/2003 8:51:54 PM
RE: Possible to include datetime in file name? Posted by Jamie Osborn @ 12/6/2003 10:05:24 PM
RE: Possible to include datetime in file name? Posted by Chan Kok Kiet @ 12/7/2003 6:41:06 AM