Mar 27, 2003 #1 axcolo Technical User Joined Mar 27, 2003 Messages 3 Location US I have a Date field that I want to convert to Julian Date. Has anyone done this successfully? Thanks!
I have a Date field that I want to convert to Julian Date. Has anyone done this successfully? Thanks!
Mar 27, 2003 #2 sirmanson Programmer Joined Nov 6, 2001 Messages 12 Location US Where are you trying to convert this date? In the Query/Results or a report? What kind of database is the data coming from? Upvote 0 Downvote
Where are you trying to convert this date? In the Query/Results or a report? What kind of database is the data coming from?
Mar 27, 2003 Thread starter #3 axcolo Technical User Joined Mar 27, 2003 Messages 3 Location US In the Results. The data is from one of our DB2 tables. Upvote 0 Downvote
Mar 28, 2003 #4 sirmanson Programmer Joined Nov 6, 2001 Messages 12 Location US You should be able to modify the query with something similar to this : cast( year(thedate) * 1000 + dayofyear(thedate) as char(7) ) Upvote 0 Downvote
You should be able to modify the query with something similar to this : cast( year(thedate) * 1000 + dayofyear(thedate) as char(7) )
Mar 28, 2003 Thread starter #5 axcolo Technical User Joined Mar 27, 2003 Messages 3 Location US This worked just fine... thank you! Upvote 0 Downvote