Hi All,

  I need a solution to this problem.

  My program creates a folder on a given time. This folder should be
automatically deleted exactly after 30 days.
  Like this many folders are created.  I use Date dateofcreation =  new
Date(f1.lastModified()) and get the date and time of creation, and in
another variable i store current system date. I am trying to put this
condition.

  if(currentdate - dateofcreation >=30)
  {
     f1.delete();
  }

  I know this won't work, but i have to exactly like this.

  I need you guys help.


bye

b.karthikeyan.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to