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.
How do I convert date and time column to only date column
My date looks like this 2002-12-26 00:00:00.000 What function can I use to make it look like this 2002-12-26This message has been edited. Last edited by: Kerry,
Please check the "Using Function" manual and the search capability on this forum for the subroutine HDATE which converts the date portion of a datetime stamp to a date.
It works to show the date on the reprot, but when I want to use this date for period calculations, my calulations dont work with formate change in dev studio.
Though your "date looks like this 2002-12-26 00:00:00.000", the format of the field is more important. What is the format for field SCHOOLOPENDATE in the Master for table STAGE_CHILD_POS?
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
Can you post the exact piece of code where you're making the transformation using HDATE? It would also be helpful to see the FIELD definition of SCHOOLOPENDATE as it appears in your masterfile.
edited to add: I recommend the following text, (Almost) 101 Watys to Work with DATES in WebFOCUS. I would draw your attention to Example 19.4b or Table 3.14.This message has been edited. Last edited by: jimster06,
jimster06 DevStu WF 7.6.11 W7 HTML, PDF, EXL2K
Posts: 252 | Location: USA | Registered: April 15, 2003
If you're just always using the date portion of the field and never have need of the time portion, then it might be the smartest to change the master file. Change the usage (or format) to read YYMD and change the actual to read DATE, in stead of HYYMDs. Then you do not need to use HDATE or some such conversion method. But, you do have to watch out for re-creating the synonym... although I seem to remember that there is also a setting to create synonyms with date fields iso date-time fields.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007