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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Dates with seconds
 Login/Join
 
Platinum Member
posted
I've been reading all day everything I can find in the forum and on the website on dates, but nothing I seem to try works and I can't figure out why.

I need to do the following:
1. Have the date display in this format 10/03/2005 14:36:20 PT. My problem is getting the PT (time zone) on the end. When ever I try to edit or chgdat my data, I get an error. If I put it in this format DTTIME/A25= EDIT (DATE_TIME1, '9999/99/99 99:99:99') | ' PT'; it works just fine. If I change the 9999/99/99 to 99/99/9999 it puts the date as 20/05/1003. CURRTIME (below) displays the date/time correctly it just doesn't have the PT on the end. DATE_TIME2 AND DTTIME2 is just to try and get the PT. This shouldn't be that hard.
CURRTIME/HMDYYS=CURRENT_TIMESTAMP;
DATE_TIME2/A20= HCNVRT (CURRTIME, '(H17)' , 17, 'A20');
DTTIME2/A25= EDIT (DATE_TIME2, '99/99/9999 99:99:99') | ' PT';month/day/year

Any suggestions?
 
Posts: 179 | Registered: November 10, 2004Report This Post
Expert
posted Hide Post
This works:

DEFINE FILE CAR
DT1/HYYMDS = HINPUT(14,'20010721124508', 8, 'HYYMDS');

CURRTIME/HMDYYS=DT1;
DATE_TIME2/A20= HCNVRT (CURRTIME, '(HMDYYS)' , 20, 'A20');
DTTIME2/A25= DATE_TIME2 | ' PT';
END
TABLE FILE CAR
PRINT
DT1
CURRTIME
DATE_TIME2
DTTIME2
BY COUNTRY
END
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Thank you thank you!!! That worked perfectly.
 
Posts: 179 | Registered: November 10, 2004Report This Post
Expert
posted Hide Post
You can eliminate one compute statement:

DEFINE FILE CAR
DT1/HYYMDS = HINPUT(14,'20010721124508', 8, 'HYYMDS');

CURRTIME/HMDYYS=DT1;
DATE_TIME2/A25= HCNVRT (CURRTIME, '(HMDYYS)' , 20, 'A20') | ' PT';
END
TABLE FILE CAR
PRINT
DT1
CURRTIME
DATE_TIME2
BY COUNTRY
END
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders