/** * converts this gMonthDay into a local java Date. * @return a local date representing this Date. */ public java.util.Date toDate() { SimpleDateFormat df = new SimpleDateFormat(MONTHDAY_FORMAT); setDateFormatTimeZone(df); java.util.Date date = null; try { date = df.parse(this.toString()); } catch (ParseException e) { //this can't happen since toString() should return the proper string format e.printStackTrace(); return null; } return date; } //toDate()
/** * converts this gMonthDay into a local java Date. * * @return a local date representing this Date. */ public java.util.Date toDate() { SimpleDateFormat df = new SimpleDateFormat(MONTHDAY_FORMAT); setDateFormatTimeZone(df); java.util.Date date = null; try { date = df.parse(this.toString()); } catch (ParseException e) { // this can't happen since toString() should return the proper string format e.printStackTrace(); return null; } return date; } // toDate()