Julian to DD/MM/YYYY format

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
scorpion
Participant
Posts: 144
Joined: Thu May 12, 2005 4:19 am

Julian to DD/MM/YYYY format

Post by scorpion »

Hi ,

Can some one help me to convert an julian date to DD/MM/YYYY format?


Thanks,
Thanx&Regards
scorpion
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What kind of "Julian" date is it? There is no universal consensus about what a Julian date is. So what's yours? For example it is the ordinal day number in the current year, or a number of days/seconds/microseconds since some arbitrary zero?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
scorpion
Participant
Posts: 144
Joined: Thu May 12, 2005 4:19 am

Post by scorpion »

I have values in my julian date format like:

39424,
38725
39488

thanks
Thanx&Regards
scorpion
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And do you have any idea what those three dates should be?
-craig

"You can never have too many knives" -- Logan Nine Fingers
scorpion
Participant
Posts: 144
Joined: Thu May 12, 2005 4:19 am

Post by scorpion »

yes those are:

Dec 10 2007
Jan 10 2006
Feb 12 2008

My source is Sybase tables.

I need them in my out put as:

10/12/2007
10/01/2006
12/02/2008
Thanx&Regards
scorpion
scorpion
Participant
Posts: 144
Joined: Thu May 12, 2005 4:19 am

Post by scorpion »

can any one give me some idea to acheive this ?
Thanx&Regards
scorpion
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

These appear to be "number of days since an arbitrary zero" type Julian dates. Once you work out what that "day zero" is, you can map that date onto DataStage's Julian date and be able to use the offset to convert your dates.
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