hi guys,
I have a small snippet wherein i am converting a
String to Date ,
After which I set the date to a calendar and then
when i print the calendar object
I get the correct output
java.util.GregorianCalendar[time=1351103400000,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Calcutta",offset=19800000,dstSavings=0,
useDaylight=false,transitions=6,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2012,MONTH=9,WEEK_OF_YEAR=43,WEEK_OF_MONTH=4,
DAY_OF_MONTH=25,
DAY_OF_YEAR=299,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=4,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,
MINUTE=0,SECOND=0,MILLISECOND=0,ZONE_OFFSET=19800000,DST_OFFSET=0]
when i print the day of the year separately like
The output is "6";
Help please,
Thanks in advance