i got the following code:
Date toDay = new Date();
int year = toDay.getYear();
it doesnt work. it says the year is 106.
How do i get 2006???
something along these linse will work (I am showing u the usage if date as well)
Date cdate = new Date();
Calendar gcalendar = new GregorianCalendar();
System.out.println("cdate = "+gcalendar.toString()+"\nyear = "+gcalendar.get(Calendar.YEAR));