Android Date functions

Android most common functions to use for date. Add Days to Date public static Date addDaystoDate(Date today,int days) { final Calendar c = Calendar.getInstance(); c.setTime(today); c.add(Calendar.DAY_OF_MONTH, days); return c.getTime(); } Add Hours to Date public static Date addHourstoDate(Date today,int hours) { final Calendar c = Calendar.getInstance();...
Continue reading »