Apr 28, 2004 #1 shine67 Programmer Jan 11, 2002 41 US Hi, I am trying to get the system time and by using Calendar right_now = Calendar.getInstance(); It returns 3/28/04 while today is 4/28/04. Any idea? Or is there any other method of getting today's date? Thanks, Shine
Hi, I am trying to get the system time and by using Calendar right_now = Calendar.getInstance(); It returns 3/28/04 while today is 4/28/04. Any idea? Or is there any other method of getting today's date? Thanks, Shine
Apr 28, 2004 #2 SSJ Programmer Sep 26, 2002 54 PT The month in the Calendar starts in 0. January = 0, February = 1, etc That is very explicit in the documentation. You can also get today's date by creating a new instance of Date for example. Upvote 0 Downvote
The month in the Calendar starts in 0. January = 0, February = 1, etc That is very explicit in the documentation. You can also get today's date by creating a new instance of Date for example.