Focal Point
[SOLVED] Today's date in YYDD format

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6297009926

April 02, 2013, 10:02 AM
BKR
[SOLVED] Today's date in YYDD format
I would like to create a define field using the TODAY function only in YYDD format: For example I would like to see the following value for this define field: 20130402

I've tried TODAY() but, I don't know which argument to use?

This message has been edited. Last edited by: <Kathryn Henning>,


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
April 02, 2013, 10:21 AM
Severus.snape
You can use system & variable DATEYYMD for this.


DEFINE FILE CAR
DT/YYMD= '&DATEYYMD';
END

thanks
Sashanka


WF 7.7.03/Windows/HTML,PDF,EXL
POC/local Dev Studio 7.7.03 & 7.6.11
April 02, 2013, 10:58 AM
BKR
Thanks for your assistance. After looking at your suggestion, I have created the following define field:

DEFINE FILE AP_CHECK
DT/YYMD=&DATEYYMD;
END

The value I'm getting is 1901/09/08. How do I get today's date without the slashes? eg. 20130402


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF
April 02, 2013, 02:21 PM
Tom Flynn
XDATE/A8 = '&YYMD.EVAL';


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
April 02, 2013, 03:32 PM
BKR
SOLVED

That worked, thanks Tom.


7.6.8, Windows XP
Excel, PDF, Active HTML, HTML, PDF