Date Conversion

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dudam
Participant
Posts: 11
Joined: Sun Feb 27, 2011 9:40 am

Date Conversion

Post by dudam »

Hi,

Date format from MM/DD/YYYY to CCYY/MM/DD
we are using DS 8.5 version

Can You Plz help me any one..


Thanks in Advance.
DN
sendmkpk
Premium Member
Premium Member
Posts: 97
Joined: Mon Apr 02, 2007 2:47 am

Post by sendmkpk »

did u try a search on it
Praveen
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why should U search on it, given that it's dudam's question?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What is the data type of the source and of the target?

Date data type is stored in a binary format, and does not have a format.

If you're reading from a string and writing to a string, convert from string to date and then back to string, each time with an appropriate format specification.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As noted, a DATE has no format but a date in a STRING does. Clarify for us what your source and target types are.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

dudam emailed and said wrote:the Source and Trgt as datatype is Date
:!: First off, reply here not via private email. Those I normally ignore.

So bottom line there is no conversion needed. As noted, a date is a date and has no format.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply