SimpleDateFormat
get seconds
Calendar
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(request.getParameter("issued_date"))
long milliseconds = date.getTime(); Long seconds = milliseconds / 1000L;set seconds
long milliseconds = longDate * 1000L; Date date = new Date(milliseconds);
Calendar calendar = Calendar.getInstance();or init from date
Calendar calendar= DateUtils.toCalendar(date);Set diff : i.e. Plus one day
calendar.add(Calendar.DAY_OF_YEAR, 1);Set
calendar.set(Calendar.HOUR_OF_DAY, 0);get time
calendar.getTime()
cal.get(Calendar.ERA)Calendar.YEAR, Calendar.DAY_OF_YEAR
ความคิดเห็น