Ok, I want to make my program print out the date: 1/1/2009
But this is what it prints out:
Thu Jan 01 00:00:00 EST 2009
From this code
GregorianCalendar startDate = new GregorianCalendar(2009, Calendar.JANUARY, 1);
public void setStart()
{
startDate.setLenient(false);
Date date = new Date(startDate.getTimeInMillis());
System.out.println(date);
}
How can I change it so that it only prints out 1/1/2009?