I need to retrieve day year and month from a timestamp object as long numbers:
public long getTimeStampDay()
{
String iDate = new SimpleDate
long timestamp = bornDate.getTime();
Calendar cal = Calendar.getInstance();
cal.setTimeInMillis(timestamp);
return cal.get(Calendar.YEAR);
There are calendar fields for each property you need.
Alternatively you can use joda-time:
DateTime dateTime = new DateTime(bornDate.getDate());
return datetime.getYear();