<<< The Date class | Index | Days diff >>> |
A statement that converts a GregorianCalendar object to a Date object
Date endDate = gregEndDate.getTime();
A statement that gets a Date object for the current date/time
Date now = new Date();
Statements that convert Date objects to String and long variables
String nowAsString = now.toString(); // converts to a string long nowInMS = now.getTime(); // converts to milliseconds
<<< The Date class | Index | Days diff >>> |