> This is what can happen when you set out to ask one question while think
> about another. I meant to ask is there a function or a script that will
> return a julian date such as for 10/09/96 the julian date would be 96283.
> I need this for PdoxDos 3.5 (the good thing about my screwup here is now
> I know DOW() is available in 3.5)
It's been about 4 years since I've used PdoxDos 3.5, or had to deal with
the Julian date problem; however, here is how I remember it:
If I remember correctly there was no built in function for extracting
the Julian date from a given date.
As a result I was forced to write a short script that went something
like the following:
Year.a = STRVAL(Year(Today()))
BegYr.d = DATEVAL("1/1/" + Year.a)
JulNum.n = Today() - BegYr.d + 1
JulDate.n = NUMVAL(Year.a + STRVAL(JulNum.n))
In my example I am determining the Julian date for the current day, but
any variable or field value can be plugged in. All I am doing is
subtracting the first of the year from the date in question (I may be
mistaken, but I recall having to add 1 to to the result in order to get
the correct Julian day number). I then attach the year value.
I'm sure if I missed a step, or added a couple, I'll here about it. But
this is the way I remember it. Good luck.