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
syam.neelam
Participant
Posts: 10
Joined: Sat Aug 18, 2007 6:29 am

date conversion

Post by syam.neelam »

What are the conversion steps to convert the date from dd/mm/yy yo mm/dd/yy
Syam Sundar Reddy
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DateToString() and StringToDate() functions with appropriate format strings.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
naveen19
Participant
Posts: 52
Joined: Tue Mar 06, 2007 9:08 am
Location: India
Contact:

Re: date conversion

Post by naveen19 »

Hi,
Try this stage variable but data type should be varchar
Right(columnname,2) :'/' : Field(columnname,1) :'/' : Field(columnname,4)


Regards
Naveen.K
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Field() function requires a minimum of three arguments. And the question was posed with Date as the data type.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply