Mar 27, 2003 #1 axcolo Technical User Mar 27, 2003 3 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 Nov 6, 2001 12 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 Mar 27, 2003 3 US In the Results. The data is from one of our DB2 tables. Upvote 0 Downvote
Mar 28, 2003 #4 sirmanson Programmer Nov 6, 2001 12 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 Mar 27, 2003 3 US This worked just fine... thank you! Upvote 0 Downvote