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     Convert '385649' into a date?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Convert '385649' into a date?
 Login/Join
 
Guru
posted
Hi,

I have a team member who needs help converting one of those old legacy dates into a YMD kind of format. I think there's some arbitrary start point and then it counts up from then. If I knew the start date, I could figure it out manually, but perhaps there is a function that will let me input the numerical string and then output a human-readable date?

Cheers,

Joey


-WebFOCUS 8.2.01 on Windows
 
Posts: 318 | Location: Los Angeles, CA | Registered: November 15, 2005Report This Post
Virtuoso
posted Hide Post
It's pretty important that you know what the date actually is and how it's produced. There are oodles of date conversion routines in the "using Functions" manual and various other documents, but you've got to know what you're starting with to know which functions and/or DM commands to use.

This message has been edited. Last edited by: Darin Lee,


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
I agree with Darin, when you say legacy date, on what type of system was the date used.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
If you can't find the starting date this might be a way to:
If today in your legacy system is 385649 then calculate the number of days since 1 jan 1900 (that is 39274). The difference is 346385.
Now you can create a calculated date in your master.

DEFINE NORMALDATE/DMYY=LEGACYDATE-346385;

And use this field in your reports




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Guru
posted Hide Post
Yes, that's perfect. Thanks Frank!
 
Posts: 318 | Location: Los Angeles, CA | Registered: November 15, 2005Report This Post
Virtuoso
posted Hide Post
That assumes that 346385 is actually a count of days, which may be correct. That puts the base date somewhere around 950 B.C. I guess that is a pretty arbitrary start point.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
Darin, I was looking at that number too. but 950 BC??? I think it is just 950...
maybe in hours? than it would be somewhere in 1963.
What happened in July 1963.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
Frank,

Don't forget that IB use the base date of 31st Dec 1900 to get around the fact that so many other SW vendors (step up Microshaft!!) treat 1900 incorrectly as a leap year!!

I think that I may have posted this before, but enter 60 into a cell in MS Excel and then format it as a date. The date shown is incorrect in as much that February 1900 only had 28 days not 29 as displayed in your cell!! At least MS own up to this in their documentation? Confused

I've not tried it but could it be days since November 17, 1858, the base date for the Julian calendar??

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
Have a look here for an explanation (of sorts) on the VMS base date.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
Sorry Frank - must have been standing on my head when I did that one. it would be 950 AD. not 950 BC. July 1963 would be in the BD period (Before Darin)


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
tony it really does not matter if it is 1858 or 1792. the point is that you need to " calibrate" the number to a normalized used code that will give you the proper date in a smart date format.
My solution will help you to get it done.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 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     Convert '385649' into a date?

Copyright © 1996-2020 Information Builders