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     [SOLVED] Date Conversion from A10 to MDYY

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Date Conversion from A10 to MDYY
 Login/Join
 
Silver Member
posted
I've been wracking my brain trying to get this figured out, and all of the solutions that seem like they should work, aren't. I have a date field recorded as A10 (SQL: Char(10), Master File is A10) in my DB. I am attempting to convert it to MDYY format for filtering purposes.

Source Field called FROM_DATE, A10, '30/12/2015' is the example date.

From what I've been reading:

DATECVT (FROM_DATE, 'A10DMYY', 'MDYY') as a detail (DEFINE) field, or some similar variation, should work.

I keep getting blanks for the converted field.

I'm sure there's something ridiculously simple that I'm missing, but I can't find it. I'm openly welcoming someone to post the solution and make me look stupid!! Sorry if this is a repost, but I've been searching and experimenting all day...

This message has been edited. Last edited by: A Fisher,


WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS
 
Posts: 40 | Location: Kansas City, MO | Registered: June 10, 2013Report This Post
Expert
posted Hide Post
FROM_DATE/A10 = '30/12/2015';
DATE1/A8MDYY = EDIT(FROM_DATE,'$$$99') || EDIT(FROM_DATE,'99') || EDIT(FROM_DATE,'$$$$$$9999');
DATE2/MDYY = DATECVT(DATE1, 'A8MDYY', 'MDYY');


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Silver Member
posted Hide Post
Thank you very much, Tom Flynn!

This was the exact solution had been after.


WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS
 
Posts: 40 | Location: Kansas City, MO | Registered: June 10, 2013Report This Post
Platinum Member
posted Hide Post
Time to recommend the book "(Almost) 1001 Ways to Work With Dates in WebFOCUS" by Price and Perlmutter again.


WebFOCUS 7.7.05 (Someday 8)
Windows 7, All Outputs
In Focus since 1983.
 
Posts: 103 | Registered: April 27, 2011Report This Post
Master
posted Hide Post
quote:
Time to recommend the book "(Almost) 1001 Ways to Work With Dates in WebFOCUS" by Price and Perlmutter again.


yea, for only $127. Guess they didn't want to sell a lot of them.

http://www.amazon.com/Almost-D...-8-0-2/dp/1626207364



- FOCUS Man, just FOCUS!
-----------------------------
Product: WebFOCUS
Version: 8.1.04
Server: Windows 2008 Server
 
Posts: 578 | Registered: October 01, 2014Report This Post
Gold member
posted Hide Post
or $20 for the WebFOCUS 7 version.

Still not enough readily available content to search for.


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
 
Posts: 92 | Registered: July 31, 2015Report This Post
Platinum Member
posted Hide Post
I got my employer to buy a copy.


WebFOCUS 7.7.05 (Someday 8)
Windows 7, All Outputs
In Focus since 1983.
 
Posts: 103 | Registered: April 27, 2011Report This Post
Gold member
posted Hide Post
Yes, go with the 7 version for $20 http://www.amazon.com/WebFOCUS...rds=webfocus+7+dates

This is an essential reference guide for anyone who is constantly working with date conversions.

Also if there is a date format you are constantly converting to another I would consider placing a function on the server rather than coding it into every fex.


------------------------------------------
DevStudio 8.2.03
WFS 8.2.03
 
Posts: 86 | Location: Atlanta | Registered: May 10, 2007Report This Post
Silver Member
posted Hide Post
I had seen this book mentioned before, but saw only the higher priced versions.

Thanks for the reminder and finding the $20 copy!


WebFOCUS 8.2.0.1 / App Studio 8.2.0.1 (04092014) / Windows 7 / HTML5, PDF, XLS
 
Posts: 40 | Location: Kansas City, MO | Registered: June 10, 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     [SOLVED] Date Conversion from A10 to MDYY

Copyright © 1996-2020 Information Builders