Focal Point
[CLOSED] Converting a date from a calendar drop down

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

December 30, 2009, 02:30 PM
saggy
[CLOSED] Converting a date from a calendar drop down
I have a calendar drop down on a HTML Page and i need to convert the date coming from the Filter Page to YYMD format and the date from the HTMl page comes in a MDYY format and the data convert functions are not being helpful in this case sucah as
-SET &SDATE1=&PRJ_DATE;
-SET &SDATE2=DATECVT(&SDATE1,'MDYY','YYMD');
-SET &SDATE3=DATEADD(&SDATE2,'M',-2);
-SET &SDATE4=DATECVT(&SDATE3,'YYMD','I8YYMD');

where &PRJ_DATE is the Date coming from the calendar DropDown

&SDATE2 has a value of 0

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


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


December 30, 2009, 03:11 PM
GinnyJakes
Is &PRJ_DATE coming from a control with dashes or slashed in it? You might have to take them out with EDIT first. A value of zero indicates an invalid date format.

You might want to -TYPE out the value of the date coming in from the filter page to see exactly what it looks like.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
December 30, 2009, 03:54 PM
Dan Satchell
I don't believe DATECVT and DATEADD are supported in Dialogue Manager. Try function CHGDAT to convert your date:

-SET &SDATE2=CHGDAT('MDYY','YYMD',&SDATE1,'A17');



WebFOCUS 7.7.05