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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Actuate eReporting version 6

Status
Not open for further replies.

DRSinclair

Programmer
Jun 15, 2005
9
GB
I have a report which outputs to a text file, all works fine except i am trying to create a file name with todays date and time i.e. c:\cheque 12-12-2005 16:59.txt I cannot see how to get the date in the output file name. Any help would be great.

Regards
Dave Sinclair
 
You can use format function to add the date to the filename as follows:

sFilename = "C:\cheque " & format(Date, "MM-DD-YYYY HH:NN") & ".txt"

I hope this helps.

-- JB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top