Convert Julian date to calendar date

I am looking for the syntax to convert a Julian date to Calendar date in Crystal Reports using a calculated field or other utilities available in Crystal
LVL 3
Trygve ThayerIT DirectorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mlmccCommented:
Does that work or what format are your julian dates in?

mlmcc
0
Trygve ThayerIT DirectorAuthor Commented:
I have the crystal report open but don't know the syntax to type in.
0
Trygve ThayerIT DirectorAuthor Commented:
I am close but I can not get the comma and the descimal gone
 
it is showing  2,010,085.00
I need it to be   0085
 

NumberVar YearOfDate := Year (DateValue ({BAQReportParameter.Option02}));
DateTimeVar LastDayLastYear := DateValue ((YearOfDate - 1), 12, 31);

NumberVar JulianDate := 0;
NumberVar JulianDateYear := 0;

JulianDate := DateValue ({BAQReportParameter.Option02}) - DateValue (LastDayLastYear);

JulianDateYear := (YearOfDate * 1000) + JulianDate;

Open in new window

0
mlmccCommented:
If you drop the Julian Date field on the report, what does it show?

mlmcc
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Databases

From novice to tech pro — start learning today.