As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hi Tony, Dates in WebFocus can be a little tricky. You have to use an I8 format for date function. So you will first need to convert your &variable dates and then use the datedif function. If your users use a mm/dd/yyyy format, the following code will work.
WHERE ( REPARTOCIRCULACION.ENTREGAFECHA GE '&ENTREGAFECHA' ) AND ( REPARTOCIRCULACION..ENTREGAFECHA LE '&ENTREGAFECHA2' );
- two periods between the SEGNAME and FIELDNAME -
I assume because you are still testing that you are entering the dates in a consistent format, but as Emily points out you may have to strip out unwanted characters and re-arrange if you allow users to type in the dates. The only useful date format is YYMD (which happens to be the SI standard, so why the heck do people still write MM/DD/YY ! ... grrrrr). When you get into production I would strongly suggest you only allow your users to use the calendar picker, so the dates automatically get returned as YYMD format and the users can't 'muck' up by putting in dates wrong.
Originally my field looks like this: DMYY (across Latin America use this format.) I Change the format as suggested by a DEFINE: entregafecha / YYMD = REPARTOCIRCULACION. ENTREGAFECHA; Subsequently use the following question:
WHERE (REPARTOCIRCULACION.entregafecha GE '& entregafecha') AND (REPARTOCIRCULACION.entregafecha LE '& entregafecha2'); I put a calendar control for my users to choose the date
As websmash already said in his first reply to this, you have to add quotes around the variables. If you don't you'll get -36 as a result, if you do, you get 4.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007