Android Utililty Methods Date Time Get

List of utility methods to do Date Time Get

Description

The list of methods to do Date Time Get are organized into topic(s).

Method

StringgetDate()
get Date
Calendar c = Calendar.getInstance();
int theYear = c.get(Calendar.YEAR) - 1900;
int theMonth = c.get(Calendar.MONTH);
int theDay = c.get(Calendar.DAY_OF_MONTH);
return (new Date(theYear, theMonth, theDay)).toString();