Conversion of calender date to julian date

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
siva4joy
Premium Member
Premium Member
Posts: 34
Joined: Fri Apr 14, 2006 6:10 am
Location: London

Conversion of calender date to julian date

Post by siva4joy »

hi,

Can any body help me in conversion of calender date to julian date and
vice versa.

Thanks in advance .

Regards,
Sankar.
BalageBaju
Participant
Posts: 34
Joined: Fri Sep 22, 2006 10:59 pm
Location: India

Post by BalageBaju »

Use Iconv and Oconv functions to get the solution.

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

Post by ray.wurlod »

There are many versions of what "Julian" means.

If you mean the ordinal number of the day in the year, then the "DJ" conversion code in Oconv() will yield it. For example Oconv(InternalDate, "D4/JY") will return something like 287/2006.

If you mean something else then please specify it. Perhaps look at the SDK routines for dealing with base dates of 01/01/1970 and 01/01/1900 to give you some idea.
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