public String getFormattedDate ( String format ) { SimpleDateFormat dateFormat = new SimpleDateFormat ( format ) ; return dateFormat . format ( date ) ; }
Formats the date of the event with the given format