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
Current Date Format
 Login/Join
 
Platinum Member
posted
Hi All

I want to print the current value as this format

"Tuesday,January 16,2007 2.35 PM"

Format

How can i achive this one ???

Please help me to solve this problem


Thanks in Advance
Gobinath Veludamy


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Gobinath,

Have you tried anything at all yet to obtain this?

What manuals have you checked? What searches in documentation (top right) have you performed?

If you let us know what you have already tried then we might help you some more, but if you haven't yet tried to solve this on your own (as it would appear) then at least first try something.

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
Platinum Member
posted Hide Post
Hi Tony

I tried with today() function

My Code .....

SQL SQLORA
SELECT SYSDATE A FROM DUAL;

TABLE FILE SQLOUT
PRINT
A
COMPUTE DAT/A100 = TODAY('A100');
ON TABLE HOLD
END



TABLE FILE HOLD
PRINT
DAT
END
********************************************


i got the 12/11/2007 format only

Thanks in Advance
Gobinath Velusamy


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
So your sysdate is a string that only holds the date.
Do you also have a filed like systime?

If you have you need to concatenate these fields to one field (DATETIME) and then you can start changing the format on that field. or you can decide first the manipulation on the date field and then on the time field and in the last step combine these two to one string.




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
Gobinath,

At least you have tried something, I (we?) get disenchanted with folks who are not prepared to at least try and find out what they need.

Try this -
-SET &DOWK = DOWKL(&YYMD, 'A12');
-TYPE &DOWK &DATEDMtrYY &TOD

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
Here's what I believe is an undocumented System Date variable (I've never used it before):

&DATEwrMtrDYY

It works in v5.3.2. I wonder if it's mentioned in that famous book, '10001 things to do with dates'?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Francis

your blowing out of proportions with this book....
it's 1001 not ten times more...or are you writing your own book.




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
Francis,

The book does not mention that combination. But it does give the following:

"For the record, there are eight possible date forms, four possible month transformation options and eight day transformation options (but only two results); thus the possible combinations are (8x4x8) or 256."

Anyone who doesn't have the book needs to order one.


Glenda

In FOCUS Since 1990
Production 8.2 Windows
 
Posts: 301 | Location: Galveston, Texas | Registered: July 07, 2004Report This Post
Guru
posted Hide Post
Refer to "Printing Options" page 26-27 of 2nd Edition

It doesn't specifically give Francis's example, but the table in Example 1.6 gives all the elements, and it states

"The print options combined with the basic SmartDate or DateTime formats produce a wide range of date field formats."

I strongly agree with Glenda that this is a must have book for anyone writing webfocus code that does anything with dates.


WebFOCUS 8.2.03 (8.2.06 in testing)
 
Posts: 253 | Location: Melbourne, Australia | Registered: February 07, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders