title: Java Joda-Time DateTime How to Create a Date from a Julian date
body: <p>If I execute this statement using <a href="http://www.joda.org/joda-time/" rel="nofollow">Joda-Time</a>:</p>
  
  <pre><code>System.out.println(new DateTime(1387947600*1000L));
  </code></pre>
  
  <p>It prints out this date:</p>
  
  <pre><code>2013-12-24T23:00:00.000-06:00
  </code></pre>
  
  <p>What I am trying to create is this exact date but all I have is Julian date format 13359 in EST time zone.  What I have tried is appending "20" to my julian date, giving me the String "2013359".  Then I use the code:</p>
  
  <pre><code>DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyyDDD");   
  DateTime test1 = formatter.parseDateTime(d2);
  </code></pre>
  
  <p>When I print out test1, it gives me:</p>
  
  <pre><code>2013-12-25T00:00:00.000-06:00
  </code></pre>
  
  <p>If I convert test1 to <a href="https://en.wikipedia.org/wiki/Coordinated_Universal_Time" rel="nofollow">UTC</a> time using</p>
  
  <pre><code>DateTime test2 = test1.withZoneRetainFields(DateTimeZone.forTimeZone(TimeZone.getTimeZone("UTC")));
  </code></pre>
  
  <p>And then print out test2, I get:</p>
  
  <pre><code>2013-12-25T00:00:00.000Z
  </code></pre>
  
  <p>This is not what I am looking for.  How can I go from </p>
  
  <pre><code>"13359" in EST zone
  </code></pre>
  
  <p>to</p>
  
  <pre><code>2013-12-24T23:00:00.000-06:00
  </code></pre>
  
  <p>Anybody have any idea?  I have spent weeks on this!</p>