I noticed, this is your 100th post. So you're expected to open a bottle of wine.
One of the classes you need is java.text.SimpleDateFormat (see Where your java is /Java/docs/api/java/text/SimpleDateFormat.html) The document also shows what letter means what (e.g. that big M meand month and small m means minute)
Prints: Fri May 04 00:00:00 CEST 2007 <- my time zone, Yours, Bu. 05-04-2007
Joined: Oct 21, 2006
Hi Bu, Thanks for the explanation. I have also implemented something pretty much the same in my program. But now I have to so some date arithmetic on it. any ideas on that? I basically have to compare 2 dates I guess I will have to parse the month, the date and the year from the Date object.(Is that possible?) Is there another way to do this?