When I simply use WHERE DATE GE &DATE_FROM.(|FORMAT=DMYY).DATE FROM:.QUOTEDSTRING; WHERE DATE LE &DATE_TO.(|FORMAT=DMYY).DATE TO:.QUOTEDSTRING;
i get a date picker. - good But when I select a date, it appears e.g. 1.Nov.20182018 for my Parameter - Looks bad!!! Which Format of my Date do I have to use to let the date picker look normal?
Tried with HDMYYS, YYMD, DMYY., DMYY I prefere DMYY.
Can you create a quick CAR example?This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8.1.05 Windows, All Outputs
April 29, 2019, 08:07 AM
MartinY
The problem is not with the WHERE clause but the auto-prompt calendar that return a specific date format which you need to match with
DEFINE FILE GGSALES
DATEX /MDYYtr = DATE;
END
TABLE FILE GGSALES
SUM DOLLARS
BY REGION
BY DATEX
WHERE DATEX GE &DATE_FROM.(|FORMAT=DMYY).DATE FROM:.QUOTEDSTRING;
WHERE DATEX LE &DATE_TO.(|FORMAT=DMYY).DATE TO:.QUOTEDSTRING;
END
-RUN
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
April 29, 2019, 08:45 AM
jenni
THANKS
How can I transform DMYY to MDYYtr??
WebFOCUS 8.1.05 Windows, All Outputs
April 29, 2019, 10:53 AM
FP Mod Chuck
Jenni
Any smart date can be transformed into another format simply by using a DEFINE as Martin showed in his example.
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
April 30, 2019, 02:09 AM
jenni
@FP Mod Chuck... I know, but it's just not working for my DMYY Format.
For YYMD it's easy. I wouldn't ask if I would not Need a hint and sorry, but yours is so really not helpful.
So If someone else could maybe help me to solve my Problem
-SET &ECHO=ALL;
DEFINE FILE CAR THISDATE/A8YYMD = EDIT('&YYMD','99999999'); THIS_DATE/I8YYMD = EDIT(THISDATE); RIGHT_FORMAT/MDYYTR = THIS_DATE; END
TABLE FILE CAR PRINT COUNTRY NOPRINT RIGHT_FORMAT END
WebFOCUS 8.1.05 Windows, All Outputs
April 30, 2019, 02:19 AM
jenni
Solved it by myself.. Can't use this in Infoassist, but it works.