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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi

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