how to retireve date from day in java
hi i have function which takes day as input i would like to get the date corrosponding to that day
[105 byte] By [
har_para] at [2007-11-26 21:23:47]

Do you mean you got the "DATE", and you want the "DAY" ?Date containssecond, minute,hour, Day, Month, Yearread this one http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html
If I can guess correctly what you mean :-) create an instance of GregorianCalendar, set its DAY_OF_WEEK to the day you have (say, Friday) and voil? you have the date (say, March 16, 2007).
> At least post the method's signature ;-)
public void Calendar.set(int field, int value)
Calendar is the superclass of GregorianCalendar.
If your smiley indicated a joke, I didn't get it, so I take as just a sign of friendliness.
Message was edited by:
OleVV
> > At least post the method's signature ;-)> If your smiley indicated a joke, I didn't get it, so> I take as just a sign of friendliness.I'm sorry, the request was meant to the OP I should have specified that ;-)