Re: date + 90 days

Discussion in 'Java' started by =?iso-8859-1?q?Roger_Lindsj=F6?=, Jul 31, 2003.

  1. On Wed, 30 Jul 2003 23:07:01 +0200, Marco Schmidt wrote:

    > [XaToA]:
    >
    >>SimpleDateFormat fechabase = new SimpleDateFormat("yyyy-MM-dd
    >>H:mm:ss.S"); String ahora = fechabase.format(new Date());
    >>
    >>how can i sum to ahora 90 days?

    >
    > Add 90L * 86000L * 1000L to System.currentMillis() and then create a
    > Date from that long value. Then you can format the Date in whatever way
    > you need.


    Did you mean 86400L?

    Roger
     
    =?iso-8859-1?q?Roger_Lindsj=F6?=, Jul 31, 2003
    #1
    1. Advertisements

  2. Marco Schmidt, Jul 31, 2003
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    1
    Views:
    832
    Matthew Speed
    Nov 8, 2003
  2. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,785
    Michael Borgwardt
    May 30, 2004
  3. Matt
    Replies:
    2
    Views:
    752
    Pete Becker
    Nov 8, 2003
  4. David Stockwell
    Replies:
    2
    Views:
    893
    Anna Martelli Ravenscroft
    Sep 20, 2004
  5. Laery
    Replies:
    11
    Views:
    1,175
    Laery
    Feb 25, 2005
  6. Replies:
    5
    Views:
    694
    Bo Yang
    Nov 2, 2006
  7. Replies:
    8
    Views:
    715
    Lubna tt
    Jun 26, 2005
  8. kirke

    list of days between two days

    kirke, Oct 19, 2006, in forum: Javascript
    Replies:
    7
    Views:
    342
    Julian Turner
    Oct 20, 2006
Loading...