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

Get system date into a specific format

Status
Not open for further replies.

H1004

MIS
Oct 28, 2003
136
0
0
US
I used the following code to grab the current date (system date):
NOWDATE/A8 = TODAY(NOWDATE);

And it comes out as 12/10/03
However, I wanted to output the following format:
20031210..
Any suggestion is greatly appreciated.
 
Try this

DATE1/I8=&YYMD;

If you want the date in alpha format do

DATE1/I8=&YYMD;
DATE2/A8=EDIT(DATE1);

Regards

Tewy
 
Tewy is a little of on one thing. The alpha process could be:

DATE2/A8='&YYMD';

and DATE1 would not be needed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top