Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 converting julian date to a normal date

Author  Topic 

gugu.mncube
Starting Member

1 Post

Posted - 2008-09-23 : 06:53:31
hi, i created a stored procedure for my reporting services report, retrieving my data from JDEdwards Citrix Server and my date comes out as "108214" how do i convert it to dd MMM YYYY?
Gugu SA-JHB

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-09-23 : 07:13:55
Try this
DECLARE	@jd INT

SET @jd = 108214

SELECT CONVERT(CHAR(11), DATEADD(YEAR, @jd / 1000, DATEADD(DAY, @jd % 1000, '18991231')), 106)



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -