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

Current date in a variable?

Status
Not open for further replies.

kaeserea

Programmer
Joined
Feb 26, 2003
Messages
164
Location
DE
Hello!

I'd like to display the current date in the HEADING of my report. How can I do this? Is it possible to have the date in a variable?

In the manual I only found the TODAY() function which only works with DEFINE or COMPUTE. But I don't want to have the date as a column in my database but in a variable. Is this possible?

Thanx
Eva
 

Hello Eva,

There are the standard amper variables:
&YYMD, &YMD, &TOD, etc.
You can view all of them:
Code:
-? &
and use the appropriate in your heading. e.g:
Code:
TABLE FILE CAR
HEADING
"REPORT CREATED &YYMD"
PRINT COUNTRY
END

Regards
Grzegorz
 
Or if you need to use a funky-looking date format, you can always play with a DEFINE? Cheers,
Hank W.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top