I receive a timestamp from a SOAP service in milliseconds. So I do this:
Date date = new Date( mar.getEventDate() );
How can I extract the day
Use Calendar for this:
Calendar cal = Calendar.getInstance(); cal.setTime(mar.getEventDate()); int day = cal.get(Calendar.DAY_OF_MONTH);