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     Converting Mysql Dates

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Converting Mysql Dates
 Login/Join
 
Platinum Member
posted
My mysql database stores dates like this:

1122305842 <--- number of seconds since 1970.

This is a ticket create date for my help-desk.

If I view the ticket, the php code displays the date as:

October 18th, 2005, 9:59 am

I am trying to figure out how to get the date to display this same way in my WF reports.

is /60 /60 /24 /365.25 the best way to accomplish this?

I am hoping someone has dealt with this before and already has it figured out.

Greg
 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 2005Report This Post
Expert
posted Hide Post
I'm not sure about mssql, but for other DBMS defining a date field like this works:

DB2 -

FIELD=ACT_PRFL_END_DT, ACT_PRFL_END_DT, HYYMDS, DATE, MISSING=OFF, $

MS SQL Server -

FIELD=RECCREATEDATE, RECCREATEDATE, HYYMDs, HYYMDs, MISSING=ON, $

There's an explanation in the manual about the difference between HYYMDs and HYYMDS, something about thousands of a second.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Hi Greg,

Did Francis' suggestion help you? The following topics from Information Builders' online documents may be of interest:

Take a date that is stored as seconds and convert to MDYY http://techsupport.informationbuilders.com/sps/12782022.html

How to change a HYYMDS to ALPHA format?
http://techsupport.informationbuilders.com/sps/91691097.html

You may also want to take a look at Vivian's post about the reference book, 1001 Ways to Work With Dates in WebFOCUS and FOCUS, which shows a lot of way to work with WebFOCUS dates and date conversions.

Hope this helps.

Cheers, Big Grin

Kerry
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Platinum Member
posted Hide Post
I opened a helpdesk ticket for this and Caesar was able to provide me with the information I needed.

http://techsupport.informationbuilders.com/app/css_web_...nd_how_to_deal_w.htm
 
Posts: 133 | Location: Orlando, FL | Registered: August 04, 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     Converting Mysql Dates

Copyright © 1996-2020 Information Builders