This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi all, i am having a slight problem manipulating dates The code requires a inpout odf date in string format (yyyymmdd) eg 20021218 what i need is a function which will calculate one day less from the given day i.e 20021217 if it is 20030101 .. it should give me 20021231 also take care of feb and leap year.. i need this asap .. deadlines to meet consider this as an SOS Thanx in advance Chhaya
Hi, Well as david suggested, using the calendar class in the util package. ----- calendar c1= new calendar(); Date d1= new Date(); And passing a parameter to the setTime() method--object of the date class. while using the get() function: c1.get((Calendar.Date)-1)<<---- Regards, [ December 19, 2002: Message edited by: girish rateshwar ]