SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
You are using an awkward way to convert a date to a String. Try the String#format() method or one of the date format classes, eg SimpleDateFormat.seenu akula wrote: . . . I am facing issue while converting current date to Julian date in java 1.5 & above. . . .
Campbell Ritchie wrote:What do you mean by 13 days out? What do you expect the date to be and what is displayed?
Julian Date:2011007
Julian Date:2010359
When I looked on Wikipedia, I read that Julian dates are days and decimal fractions of days since 4713BC. So that output format is something different from what Wikipdeia describes as "Julian Day". Have you got a link to a Julian Date in the format 2011007 = today, please, Paul C.Paul Clapham wrote:You seem to have confused the "Julian date" with the "Julian calendar". . . .
Campbell Ritchie wrote:
When I looked on Wikipedia, I read that Julian dates are days and decimal fractions of days since 4713BC. So that output format is something different from what Wikipdeia describes as "Julian Day". Have you got a link to a Julian Date in the format 2011007 = today, please, Paul C.Paul Clapham wrote:You seem to have confused the "Julian date" with the "Julian calendar". . . .
Campbell Ritchie wrote:Actually, 25th December 2010 (Julian) and 7th January 2011 (Gregorian) are the same time. So, to all in Russia who still use the Julian Calendar, merry Christmas