public ArrayList viewBookingCheckout() {
        ArrayList temp = new ArrayList();

        Query q = em.createQuery("SELECT t from BookingEntity t");
        for (Object o : q.getResultList()) {
            BookingEntity p = (BookingEntity) o;
            if (p.getAccount().getId() == userId) {
                temp.add(sdf.format(p.getCheckoutDate()));
                System.out.println("aaa"+sdf.format(p.getCheckoutDate()));
            }
            //System.out.println("viewbooking: " + temp.size());
        }
        return temp;
    }