Android Utililty Methods Date Month Get

List of utility methods to do Date Month Get

Description

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

Method

StringgetLastMonth(String today)
get Last Month
String subYear = today.substring(0, 4);
String subMonth = today.substring(5, 7);
String subDay = today.substring(8, 10);
Long LongMonth = new Long(subMonth);
long longMonth = LongMonth.longValue();
Long LongYear = new Long(subYear);
long longYear = LongYear.longValue();
String tomorrow;
...
StringgetThisMonth(String today)
get This Month
String subYear = today.substring(0, 4);
String subMonth = today.substring(5, 7);
String subDay = today.substring(8, 10);
Long LongMonth = new Long(subMonth);
long longMonth = LongMonth.longValue();
Long LongYear = new Long(subYear);
long longYear = LongYear.longValue();
String tomorrow;
...