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     How to convert the date format ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to convert the date format ?
 Login/Join
 
Platinum Member
posted
Hi

I have the date format 2007/12/31 00:00:00.000 from the datasource


My desire output format is 12/31/07

How to achive it ?
Thanks in advance


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
ENGINE SQLORA SET DATETIME OFF or some derivative. You may also need to reformat the date.


WebFOCUS 7.6.6/TomCat/Win2003,SQL Server 2005,Oracle
 
Posts: 125 | Location: New England | Registered: February 20, 2007Report This Post
Platinum Member
posted Hide Post
Hi Ricky

I am using SQL Swrver 2005


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
Change the usage format to MDY .


Brian Suter
VP WebFOCUS Product Development
 
Posts: 200 | Location: NYC | Registered: January 02, 2007Report This Post
Platinum Member
posted Hide Post
Hi Brian

How to set usage format ? In where we have to set ?


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
The dateformat you have is something like

HYYMD I suppose

You can see that in the master file.

To change this can be done in several ways.

suppose you do this in the define

DEFINE FILE whatever
NEWDATE/YYMD=HDATE(ORIGDATE, 'YYMD');
END




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

I got this error

(FOC002) A WORD IS NOT RECOGNIZED: Dt/YYMD


when i use the code

SQL SQLMSS
SELECT * FROM ;


TABLE FILE SQLOUT

PRINT
*
ON TABLE HOLD
END

TABLE FILE HOLD
PRINT
EndDate AS ''
Dt/YYMD = HDATE(EndDate, 'YYMD');
Full_Name AS ''
Account
Branch_Name AS ''
BY EndDate
END



Please help me to solve this issue


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
change this in

SQL SQLMSS
SELECT * FROM ;

TABLE FILE SQLOUT

PRINT 
* 
ON TABLE HOLD
END

DEFINE FILE HOLD
Dt/YYMD=HDATE(EndDate, 'YYMD');
END

TABLE FILE HOLD
PRINT
Dt AS ''
Full_Name AS ''
Account
Branch_Name AS ''
BY Dt NOPRINT
END




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
Platinum Member
posted Hide Post
Thanks Frank

I got the 2007/07/31 format only even i change the format YYMD or other formats .... Can i change any intial Parameter for this


Thanks in Advance


WebFOCUS 7610
Windows
 
Posts: 121 | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
Well you should read the manual.
You can do so many things with this software, but without the manual and maybe some training you won't get all the possibilities working for you.
It will take some time, we work with Focus for almost 20 year....




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
Hi

in the following example my field DATECREATED IS A DATETIME FIELD and I changed the display of it by creating the field test and I could see the date displayed as wanted it.

test/HDMY = INVENTORYANDPRODUCTVIEW.INVENTORYANDPRODUCTVIEW.DATECREATED;


WebFocus 7.6.5
AND WebLogic server as web server
sql2005 as database server
 
Posts: 273 | Location: Europe | Registered: May 31, 2007Report 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     How to convert the date format ?

Copyright © 1996-2020 Information Builders