hi,
Can any body help me in conversion of calender date to julian date and
vice versa.
Thanks in advance .
Regards,
Sankar.
Conversion of calender date to julian date
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 34
- Joined: Fri Sep 22, 2006 10:59 pm
- Location: India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.