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  iWay Software Product Forum on Focal Point    Change Data Format from YYMD to DADMY
Go
New
Search
Notify
Tools
Reply
  
Change Data Format from YYMD to DADMY
 Login/Join
 
Member
posted
I am extracting data from a table where the date format is YYMD, I would like to set the format in the target table to DADMY and am having trouble setting this to work in the console.

I have tried different expressions within the Column Selection but this has not worked. I think it maybe a syntactical error?

Does anyone have any ideas?

Thanks for any help anyone can provide.

Hiten

Data Management Console V7.6.1 working with msSQL2005 database.


Prod: WF 7.6.1 platform Windows, databases: msSQL2000, msSQL2005, IE6
 
Posts: 12 | Registered: June 01, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
quote:
to DADMY

Not familiar with that format; what is it?


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Reply With QuoteReport This Post
Member
posted Hide Post
Hi sorry that is a function.
I would like to change the date from YYMD to DMYY.

Thanks


Prod: WF 7.6.1 platform Windows, databases: msSQL2000, msSQL2005, IE6
 
Posts: 12 | Registered: June 01, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Hiten

Why do want to change the date to DMYY?
A YYMD format is much easier to handle and whenever you need an other format in a report you can convert it.

But if you insist there are several formulas depending on the actual format you have.
Is it a smart date, a string or an number.




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, 2006Reply With QuoteReport This Post
Member
posted Hide Post
We are trying to return the max date record, and are getting the incorrect record being returned. Therefore we were wanting to see if it would make a difference if the date format was changed.


Prod: WF 7.6.1 platform Windows, databases: msSQL2000, msSQL2005, IE6
 
Posts: 12 | Registered: June 01, 2007Reply With QuoteReport This Post
Virtuoso
posted Hide Post
In webfocus you can say

TABLE FILE whatever
PRINT MAX DATE
END

If the DATE is a real date field in the database you will get the proper value.
If it is just a number or string looking as a date, it will be important what format it has.
Suppose DMYY: 13112007 and 14092006, the max value of these two "numbers" is 14092006 but that is not the max date.
suppose YYMD: 20071213 and 20060914 will give the correct number.

I'm not sure if the max date is working in ETL. If not you can run the fex and put the output in an amper value that can be used.

"where DATE = &MAXDATE"




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, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Change Data Format from YYMD to DADMY

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