Page 1 of 1

Conversion of calender date to julian date

Posted: Fri Nov 03, 2006 5:03 am
by siva4joy
hi,

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

Thanks in advance .

Regards,
Sankar.

Posted: Fri Nov 03, 2006 6:46 am
by BalageBaju
Use Iconv and Oconv functions to get the solution.

Balaji.

Posted: Fri Nov 03, 2006 9:20 am
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.