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. Advertising

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

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. David Stockwell
    Replies:
    2
    Views:
    703
    Anna Martelli Ravenscroft
    Sep 20, 2004
  2. Gerrit
    Replies:
    0
    Views:
    386
    Gerrit
    Sep 20, 2004
  3. Terry Reedy
    Replies:
    0
    Views:
    430
    Terry Reedy
    Sep 20, 2004
  4. Replies:
    5
    Views:
    468
    Bo Yang
    Nov 2, 2006
  5. kirke

    list of days between two days

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

Share This Page