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     alphanumeric field used for date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
alphanumeric field used for date
 Login/Join
 
Platinum Member
posted
I have an A30 field that may store a date. My report needs to determine if that field has a date and if so compare it to the current date. The problem is that the dates are in all kinds of formats:

01/01/2000
1/1/2000
1/1/00
12/1/2000
1/12/2000
1/12/00
etc, etc, etc....

Does anyone know if a good way to convert these into actual date formats? If anything about this can be considered good, all of the dates appear to be in day, month, year format.

Thanks


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
Master
posted Hide Post
are they always in month first, day second, year last. and are they always seperated by a slash /




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
yes. they do appear to be in day, month, year order and there are slashes between.


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report This Post
<JG>
posted
Bethany if its always Day / month / year the following will accomodate 1950 to 2049.

TEXTDATE is your A30 input date

DEFINE FILE STANDARDS
ADAY/I2=EDIT(GETTOK(TEXTDATE, 30, 1, '/', 2, 'A2'));
AMONTH/I2=EDIT(GETTOK(TEXTDATE, 30, 2, '/', 2, 'A2'));
AYEAR/A4=GETTOK(TEXTDATE, 30, 3, '/', 4, 'A4');
IYEAR/I4=IF (EDIT(AYEAR) LT 50) THEN EDIT(AYEAR) + 2000 ELSE
IF ((EDIT(AYEAR) GE 50) AND (EDIT(AYEAR) LT 100)) THEN EDIT(AYEAR) + 1900 ELSE
EDIT(AYEAR) ;
NEWDATE/A10=EDIT(ADAY) || '/' || EDIT(AMONTH) || '/' || EDIT(IYEAR);
END
TABLE FILE STANDARDS
PRINT TEXTDATE NEWDATE
END
 
Report This Post
Platinum Member
posted Hide Post
Many thanks!


Server Environment: Win2K3 Server WebFOCUS 7.13 Apache Tomcat standalone application server
 
Posts: 188 | Registered: April 14, 2005Report 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     alphanumeric field used for date

Copyright © 1996-2020 Information Builders