I have searched far and wide, but I can\'t seem find a way to convert julian to yyyy-mm-dd.
yyyy-mm-dd
Here is the format of my julian:
The Julian format
This will definitely work in all case.
DECLARE @date int SET @date = 21319 SELECT DATEADD(dd, RIGHT(@date,LEN(@date)-3)-1, DATEADD(yy,LEFT(@date,1)*100 +RIGHT(LEFT(@date,3),2),'1 Jan 1900'))