Re: Date to Julian date conversion
Posted in 2001
Colin McGrath — — source: Informix-list mailing list archive (1991-1998)
If you are using 4GL, just set the date to an integer variable, but that's the number of days since Dec 31, 1899. So, for the day number in the current year: main define d0, d1 date; define i1 integer let d0="12/31/2000"; let d1=TODAY; let i1=d1-d0 display i1 end main You can use the built-in date functions to set the d0 variable to the last day of the year previous to the date you are working on. Sinha, Niraj wrote: > > Does any one know how to convert the DATE data type to JULIAN date ?? > I know informix stores teh DATE as JULINA date internally ?? > > Thx, > Niraj > > > -- Colin Any opinions I state are my own and not necessarily those of my employer