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     [CLOSED] Convert Transform non date into Date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Convert Transform non date into Date
 Login/Join
 
Member
posted
How do I convert 41618 into 2018/04/16 OR 4/16/18 OR 04/16/2018?

I am using InfoAssist WF 8.02

This message has been edited. Last edited by: FP Mod Chuck,


8.2
 
Posts: 18 | Registered: March 23, 2018Report This Post
Master
posted Hide Post
Can post sample code?


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Virtuoso
posted Hide Post
Is the century always 20 or could it also be 19?
Could the day be single digit the way your month is? For instance, could you have a 4418 as in April 4 2018 or will that look like 40418?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Master
posted Hide Post
Can't be a JULIAN date


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
Whats the format of the date ? is it a string or numeric ?

Is this to be done in a DEFINE or COMPUTE or Dialog Manager ?

Here is a simple example. To cater for other formats of the date, you will need much more logic.

SET DEFCENT = 20

TABLE FILE CAR
 PRINT COMPUTE NON_DATE/A5 = '41618' ;
 COMPUTE TMP_DATE/A6MDY = '0' | NON_DATE ;
 COMPUTE FOC_DATE/MDYY = TMP_DATE ;
 BY COUNTRY NOPRINT
 WHERE RECORDLIMIT EQ 1
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 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     [CLOSED] Convert Transform non date into Date

Copyright © 1996-2020 Information Builders