This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi .... I want to calculate date difference between 2 DIFFERENT DATE FORMATS ... one of my date format is "yyyy/mm/dd" and the other date format is "yyyy/mm/dd hh:mm:ss" ............... how can i calcaulate the difference between these two dates and then display the result in a String in the format of yyyy/mm/dd ???.??? more over i want to make a comparision also ... like if(date1 > date 2) .. then i = 1 else i =0; So i want help on 2 things ..... 1. Finding difference 2. Comparing and then incrementing value of a temp variable. plz some one help me out on this ......................... Thanx
Joined: Oct 08, 2003
Ok .... I have converted the both the dates to the same format ... now how do i COMPARE them ...???
This is pretty much the same question you posted a little while ago (and which has been moved to the Java in General/Intermediate forum). Please do not post the same question multiple times in either the same, or across multiple, forums. thanks, bear