Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get the today's julian date in java?

807607Nov 1 2006 — edited Nov 17 2006
how to get the today's julian date in java?
hi can any one tell me how to get the todays julian date using Calender class or GregorianCalender class....

Julian date for 2006.November.01 AD 05:54 PM : 2454041.0

i have tryied with
calJ.setGregorianChange(new Date(Long.MAX_VALUE));

System.out.println(sdf2.format(calJ.getGregorianChange()));

thanks
Tushar

Message was edited by:
lad_tushar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2006
Added on Nov 1 2006
9 comments
11,489 views