When you divide 39235 by 365.25 it gives you 107.42, which seems to suggest that the number you got is the number of days since 1/1/1900 and thus you can do the following to get a java.util.Date from it:
int days = Integer.parseInt( cell[1].getContents() );
Calendar cal = new GregorianCalendar( 1990, 0, 1 ); // 0 means january here
cal.add( Calendar.DAY_OF_YEAR, days );
Date date = cal.getDate();
System.out.println( "the date is: " + date );
Main Topics
Browse All Topics





by: sciuriwarePosted on 2007-07-06 at 21:38:40ID: 19436327
Get it as a String and convert it by SimpleDateFormat("MM/dd/yy yy").parse ();
;JOOP!