Created
January 25, 2014 21:30
-
-
Save JohnLBevan/451886d38796ef5b55db to your computer and use it in GitHub Desktop.
SQL Server Date to JDE Julian Date
From http://sqlfiddle.com/#!3/d41d8/28952
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select 1000 * (DATEPART(YEAR, GETUTCDATE())-1900) | |
+ DATEDIFF(day,DATEADD(year, datepart(YEAR,getutcdate())-1900, 0),getutcdate()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment