Converting Julian dates to YYYYMMDD

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
srekant
Premium Member
Premium Member
Posts: 85
Joined: Wed Jan 19, 2005 6:52 am
Location: Detroit

Converting Julian dates to YYYYMMDD

Post by srekant »

Hi,

Can some one help me out on converting julian dates to YYYYMMDD format?

I/P dates are of format YJJJ and sample values are 8222 and 8225

Y-is the last digit of the year
JJJ-Number of the day in the year


Any help is appreciated
Sree
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Post by Raamc »

This is already discussed in this forum.

Refer the below link. This may helpfull to you

viewtopic.php?t=102387&highlight=julian+date
Thanks,
Raamc
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How do you know to which year the y refers? Is it 1998, 2008, 2018 or something else (for example 8 years after some arbitrary zero year)? What will it be when your job executes in 2011 if y is 8 ?

<rant>
Who writes these specifications anyway? The need for this compression went away when disks became cheap, at least ten years ago!
</rant>
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