<<< Calendar constants | Index | GregorianCalendar examples >>> |
Common methods of the Calendar and GregorianCalendar classes
set(intYear, intMonth, ...) set(intField, intValue) setTime(Date) // use Date object to update the date/time add(intField, intValue) // adds/subtracts the intValue roll(intField, intValue) // same as add() but does not affect other fields roll(intField, booleanValue) // +1 if true, -1 if false get(intField) getTime() // convert GregorianCalendar to Date
where the intField is one of the Calendar class fields.
<<< Calendar constants | Index | GregorianCalendar examples >>> |