class Utils {

    public static Date getRegisterDateAsDdMmYyyy(String registrationDateString) {
        SimpleDateFormat registrationDateFormat = new SimpleDateFormat("dd/MM/yyyy");
        try {
            java.util.Date date = registrationDateFormat.parse(registrationDateString);
            return new Date(date.getTime());
        } catch (ParseException e) {
            return new Date(System.currentTimeMillis());
        }
    }

}