Focal Point
[Solved] Date Conversion

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

April 15, 2011, 05:30 AM
ChristianP
[Solved] Date Conversion
Hello,
i know for you guys this is quiet easy. But it,s friday and i have a plank in front of my head. (German proverb) I want to convert the
Date 01/01/2011 in 01.01.2011 Format DMYY.

greetings and nice weekend

Christian

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


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
April 15, 2011, 06:02 AM
<FreSte>
How about this ?

DEFINE FILE CAR
  D1/DMYY WITH COUNTRY = 01012011;
  D2/D.M.YY = D1;
  D3/D-M-YY = D1;
END

TABLE FILE CAR
BY COUNTRY
BY D1
BY D2
BY D3
END

This message has been edited. Last edited by: <FreSte>,
April 15, 2011, 01:02 PM
Francis Mariani
D2/D.M.YY = D1;
Very interesting!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
April 18, 2011, 10:45 AM
ChristianP
I solved it my self!!!

DATE1_DMYY/A8DMYY=HDATE(TABLE.TABLE.DATE, 'DMYY');
DATE2_DMYY/A10=EDIT(DATE1_DMYY,'99')|'.'|EDIT(DATE1_DMYY,'$$99')|'.'|EDIT(DATE1_DMYY,'$$$$9999');


WF Production Version: 7.7.02M
WF Test Version: 7.7.02M
Developer Studio: 7.7.02
HTML, EXL2K, FLEX, PDF,PPT
April 18, 2011, 06:16 PM
Hua
WOW, works for any date format! Smiler
quote:
D4/M-D-YY = D1;
D5/M-YY = D1;
D6/M=D1;


Francis, does this documented anywhere?


Developer Studio 7.6.11
AS400 - V5R4
HTML,PDF,XLS
April 18, 2011, 08:37 PM
Francis Mariani
I've never seen this anywhere!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
April 19, 2011, 12:03 PM
<FreSte>
It is documented, see here and search for
Controlling the Date Separator


... but it's a kind of "hidden"

-Fred-
April 19, 2011, 12:52 PM
Francis Mariani
Thanks for the Doc link.

I really like "Y|M|D" to eliminate the separation character!


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server