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.
DEFINE FILE CAR NUMDAYS/I10 WITH CAR = DATEDIF('20110501','20110531','WD'); END TABLE FILE CAR PRINT NUMDAYS END
I get 21, but I think I should get 22? But when I do this:
DEFINE FILE CAR NUMDAYS/I10 WITH CAR = DATEDIF('20110401','20110430','WD'); END TABLE FILE CAR PRINT NUMDAYS END
I get 21, which would be correct. Does anyone know why this function works for April, but not May? Thanks!This message has been edited. Last edited by: Kerry,
Yeah, after I posted, I wracked my brain trying to figure it out and realized that when you do datediff, normally you have to put +1 on the end of it (if you want the days of the month). So, if I'm just doing work days, and the last day of the month is a weekend, you don't have to do that... it is inherently done for you. So, in looking at datedif each month from Jan to October of 2011, only April and July are correct b/c they are the only two months that end on Saturday or Sunday. IBI really needs to focus on making functions more user-friendly or at least include this in documentation, IMHO.