Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Date Conversion from A10 to MDYY
Go
New
Search
Notify
Tools
Reply
  
[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, 2013Reply With QuoteReport This Post
Virtuoso
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 7.7.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1942 | Location: Parker, CO | Registered: January 31, 2006Reply With QuoteReport 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, 2013Reply With QuoteReport 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, 2011Reply With QuoteReport 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, 2014Reply With QuoteReport 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, 2015Reply With QuoteReport 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, 2011Reply With QuoteReport 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, 2007Reply With QuoteReport 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, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Date Conversion from A10 to MDYY

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.