Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JulianToDate UFL

Status
Not open for further replies.

mwake

Programmer
Feb 12, 2004
151
US
I'm using CR10, reporting against a database that stores julian dates (ex. 731587), and I'm trying to convert them to Gregorian dates. I checked Crystal technical support on-line and found a JulianToDate UFL. I downloaded the .dll but it doesn't appear under the functions tab of the formula editor. I've never used a UFL before, so I was wondering if I needed to do anything else before I can use the function.
 
Assumming you actually installed and/or registered the .dll, look under the "additional functions" section of the formula editor.

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports
 
The readme file that came with the UFL said I needed to copy the .dll file to my \WINDOWS\CRYSTAL directory, which I did. It does not appear under the additional functions section. DO I need to do anything else to make it appear??

I looked at the thread provided by Synapsevampire, but it won't work for me. I'm dealing with a number field that doesn't have the year (ex.731587=1/7/2004)
 
There are different forms of a Julian date, I don't recognize yours.

I'm unfamiliar with that format, unless it's days since 1/2/0001, in which case use:

cdate(1,1,2) + {table.field}

-k
 
Hi,

Just out of curiosity, what transactional system are you reporting off of? Is the Julian date 693596 = Jan 1, 1900?

If so, don't bother with Crystals Julian UFL. As Synaps mentioned there are different forms and this one won't work for you.

Consider creating a period table that would store both Julian and Gregorian dates.

Nuffsaid.
 
I searched under Epicore here on Tek-Tips and found the solution:
dateadd("d",{appyhdr.date_applied} - 639906,#1/1/1753#)

That did the trick!!
 
Hi mwake

An alternative which we use for Epicor/Crystal reports is:

Date(01,01,01)+1+{appyhdr.date_applied}

 
Aha,

Epicor, thought so. FYI they have their own UFL for converting Julian dates.

Nuffsaid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top