title: Java getTime() error on netbean
body: <p>I can't run my project, just because of the lines with getTime() / 1000 below. Keep getting errors. It is code for a hotel booking system.</p>
  
  <pre><code>private void bookingObjectCreation() {
          booking = new Booking();
          roomsToRoomObjectList(tf_rooms.getText());
          booking.setBookingType((String) combo_reservationType.getSelectedItem());
          booking.setPerson(Integer.parseInt(tf_guestNo.getText()));
          ***booking.setCheckInDateTime(date_checkIn.getDate().getTime() / 1000);***
          booking.setBookingType((String) combo_reservationType.getSelectedItem());
          if (date_checkOut.getDate() != null) {
              ***booking.setCheckOutDateTime(date_checkOut.getDate().getTime() / 1000);***
          }
  </code></pre>
  
  <p>I have been write this hotel management system software for almost a week now, and I only get that same particular error from the control panel.</p>