Focal Point
[CLOSED] Date Headaches - converting tDMYY to I8YYMD?

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

April 02, 2013, 12:17 PM
lenny
[CLOSED] Date Headaches - converting tDMYY to I8YYMD?
Converting date formats is giving me a headache.

On the HTML launch page the users want a date control that shows the date in the tDMYY format. I then need to convert this date ultimately to an I8YYMD format to use is as a condition in the procedure.

I am totally lost here ... Help!

This message has been edited. Last edited by: lenny,


WebFOCUS 8202M
Client: Windows Server 2012R2/Tomcat 8.0/IIS
Server: IBM i v7r2m0
MS-SQL
April 02, 2013, 12:43 PM
lenny
I figured it out! The DT function works sweet!


WebFOCUS 8202M
Client: Windows Server 2012R2/Tomcat 8.0/IIS
Server: IBM i v7r2m0
MS-SQL
April 02, 2013, 12:57 PM
Alex
 
-SET &MYDATE = EDIT(&DMYY,'$$$$9999')|EDIT(&DMYY,'$$99$$$$')|EDIT(&DMYY,'99$$$$$$') ;

DEFINE FILE CAR
MYDATE/I8YYMD WITH COUNTRY= &MYDATE;
END
TABLE FILE CAR
PRINT
MYDATE
WHERE RECORDLIMIT EQ 1 
END 


I'm sure others will come up with alternatives as well.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF