public void getOtherDates() {
Session s = Factory.getSession();
Database currDb = s.getCurrentDatabase();
View contacts = currDb.getView("AllContacts");
Document doc = contacts.getFirstDocument();
StringBuilder sb = new StringBuilder();
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy hh:mm");
sb.append("Created: " + format.format(doc.getCreatedDate()));
sb.append("....");
sb.append("First modified: " + format.format(doc.getInitiallyModifiedDate()));
sb.append("....");
sb.append("Last modified: " + format.format(doc.getLastModifiedDate()));
sb.append("....");
sb.append("Last accessed: " + format.format(doc.getLastAccessedDate()));
ExtLibUtil.getViewScope().put("javaTest", sb.toString());
}