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

I have some issues with the WebFOCUS date formats.
I have a date field with the format HYYMD.
This returns the date in the format 2005/02/21.
I want a format which will convert this date to the form Feb-2005. ie, the date 2005/02/21 has to be converted to the form Feb-2005(no day). Please help me.
I cannot convert this to an alpha field because basically my requirement is to sort the data by date. If i use alpha field, the sorting will be done alphabetically.

I am using WebFOCUS 5.3.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
Cyril,

If you print the date with the format MtYY instead of YYMD, you will get a date in a format similar to what you're looking for.

For instance, today's date would print as

May, 2005.

Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Platinum Member
posted Hide Post
Something I forgot to add. If you absolutely need the date in the format of May-2005 (including the dash - ), then you could convert the date to alphanumeric. The trick would be to sort the data by the actual date field first (NOPRINT) and then by the alphanumeric version of the date.

BY DATE_FIELD NOPRINT
BY ALPHA_DATE_FIELD

This would ensure that you sort your data by date but display the format that is required.

Either way would suffice.

Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
Virtuoso
posted Hide Post
Try this.

DDATE/YYMD = HDATE(ROW_DATE, 'YYMD');
DODATE/MDYY = (DDATE);
DATEE/MtYY = DODATE;
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Thanks a lot Lane and Prarie.
The format MtYY worked for me.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders