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     [CLOSED] DATE like DD Mon, YYYY in AHTML format with sorting functionaly

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DATE like DD Mon, YYYY in AHTML format with sorting functionaly
 Login/Join
 
Member
posted
Hi,

I want to convert the date from DD-MON-YYYY (Ex: 04-FEB-2010) to DD Mon, YYYY (Ex: 04 Feb, 2010) format in AHTML output and this format should able to support sorting functionality by day, month and year.

Please can anyone help me out on this.

10x&Rgds
Aravind

This message has been edited. Last edited by: <Kathryn Henning>,


Webfocus 7.6.11, Win 7 Enterprise, AHTML
 
Posts: 2 | Registered: October 21, 2013Report This Post
Silver Member
posted Hide Post
What format is your date in (in the master file?)

If it is stored as a date, you can reformat it when you use it in the report:
TABLE FILE GGSALES
PRINT 
     DATE/DMtYY
     DATE/D AS 'Day'
     DATE/Mt AS 'Month'
     DATE/YY AS 'Year'
     DATE/wr AS 'Weekday'
ON TABLE SET PAGE-NUM NOLEAD 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
 


This example just retrieves the same field over and over, and when you sort, it will sort in calendar order (Jan, Feb, etc) , not alphabetical order (April, Aug, etc.).

You might want to read this help topic on date expressions


WF: WebFocus 7.7.03
Data: Oracle, MSSQL, DB2
OS: Windows
Output: HTML/AHTML,PDF,EXL2K FORMULA, COMT
 
Posts: 43 | Registered: November 21, 2011Report This Post
Member
posted Hide Post
quote:
GGSALES

Hi,

You are right, but i want the 'DAY' in 2-digit format...Your logic is diplaying the 'DAY' in single digit. please advise


Webfocus 7.6.11, Win 7 Enterprise, AHTML
 
Posts: 2 | Registered: October 21, 2013Report 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     [CLOSED] DATE like DD Mon, YYYY in AHTML format with sorting functionaly

Copyright © 1996-2020 Information Builders