Code example for Date

Methods: toString

0
    	add(scrollPane, BorderLayout.CENTER);
	} 
	 
	/** Returns a string of the current date in yyyy-mm-dd format. */ 
	public String shortDate(Date d){
		Date date = new Date(d.getTime());
		String dateString = date.toString();
		return dateString;
	} 
	 
 
	/** 
	 * Resets the table model. 
	 */ 
	public void resetModel() { 
		table.setModel(new AppointmentConfirmationTableModel(
				(ArrayList<AppointmentDto>)DataServiceImpl.GLOBAL_DATA_INSTANCE.getAllPatientsForDay(
						((MainWindow)owner).getDayPanel().getDay().getDate())));
	} 
	 
	/**