<<< Current date and time | Index | The Calendar class >>> |
Statements that create specific dates:
// hardcoded dates GregorianCalendar startDate = new GregorianCalendar( 2009, 0, 30 ); GregorianCalendar startTime = new GregorianCalendar( 2012, 6, 20, 15, 30 ); // using variables GregorianCalendar birthDate = new GregorianCalendar( birthYear, birthMonth, birthDay );
<<< Current date and time | Index | The Calendar class >>> |