Dear friends,
I have a swing application, that I need only hour and minute, in the DB it's stored with date, time.
My app do this:
The output of syso in the code is that:
1)java.util.GregorianCalendar[time=?,areFieldsSet=false,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="GMT-03:00",offset=-10800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=2,minimalDaysInFirstWeek=1,ERA=1,YEAR=2010,MONTH=1,WEEK_OF_YEAR=9,WEEK_OF_MONTH=4,DAY_OF_MONTH=26,DAY_OF_YEAR=57,DAY_OF_WEEK=6,DAY_OF_WEEK_IN_MONTH=4,AM_PM=0,HOUR=9,HOUR_OF_DAY=9,MINUTE=0,SECOND=33,MILLISECOND=117,ZONE_OFFSET=-10800000,DST_OFFSET=0]
2)26/02/2010 12:00
Would anyone knows why the output of a String is not 20/02/2010 09:00 ??
(The format date is to Brazil, then the format is dd/MM/yyyy, MM/dd/yyyy like the USA).
Thks