Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System date and time

Status
Not open for further replies.

SarahCPS

Programmer
Feb 17, 2000
3
US
I'm writing a program that copies a database and stores in a new location.<br>
<br>
I would like to be able to add the system date and/or time to the end of the file name of the database.<br>
<br>
Possibe?
 
NewFileName = &quot;Myfile.xxx&quot; & &quot;-&quot; & format(now,&quot;mm/dd/yy&quot;) <p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
Sarah,<br>
<br>
Be a bit careful here. It's quite possible to pick up the date and time using the VB Now() function but you should beware of PC's that disagree over what time it is.<br>
<br>
We just moved to taking the time from the Oracle database for all occaision's where we <b>were</b> using Now(). Took me a while to spot the rather subtle error that it introduced.<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top