Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Difference between two dates

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Difference between two dates
 Login/Join
 
Silver Member
posted
I am trying to display the difference between two dates.
Example: 05/04/1994 from 11/03/2006(todays date) and display the total for each.

Years Months Days
Please Help


Developers Studio 7.6.5
 
Posts: 31 | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Look up the DATEDIF function....should be what you need.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
DATEDIF will do what you want of course you will have to additional calculations as it appears you want it broken down by years, months and days. Reminds me of an old COBOL program I used to have students do. Take the number of days assume a year is either 365, 366, or 365.25 days and go from there.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Master
posted Hide Post
Can subtract dates (does not work with H formats)

DATE1/DMYY = ...
DATE2/DMYY = ...
DAYS/I6 = DATE1 - DATE2 ;

The advantage of this is that it will be translated to SQL for the interface you are using and may give you a big advantage.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Difference between two dates

Copyright © 1996-2020 Information Builders