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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Julian to Gregorian

Status
Not open for further replies.

solmskid

ISP
Feb 24, 2003
56
US
VER: Crystal XI
DB: SQL Server

Situation: Field contains contains julian day, just need to convert gregorian.

Thanks for any help.
 
You need to show some samples of the current value of the field and the date it should translate to. Can we assume the field is of number datatype?

-LB
 

Thanks for the reply -LB

I found out after the post that we are dealing with current year data only. The field (FLDA) in question contains a numeric value that represents the julian day of the current year.
I improvised and ended up with a workable solution:
ConvDate = (Date(2007,01,01) + FLDA) - 1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top