Code example for Date

Methods: toString

    	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(
Stop searching for code, let great code find you!  Add Codota to your java IDE