7 Replies Latest reply: Jun 30, 2008 9:27 AM by 807601 RSS

    Unsure about using date/time functions

      I'm trying to write a method that inserts tomorrow's date -18 years i.e.( 01/07/1990) if I excecuted the code today, but (02/07/1990) if I were to run the same piece of code tomorrow. I then need to convert the date returned into a string so I can use it in another part of the program. I've checked out the Calendar in the API but not quite sure how to use it to solve this problem. If anyone could show me an example of how to use the Calendar class that would be much appreciated.