🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18186

Q: Date Arithmetic

#18186
From: Bob Hayden
Date: Fri, 24 Jul 1998 00:00
13 lines
911 bytes
Hello,

I need some help with some simple date arithmetic. I would like to take
a java.sql.timestamp and add an int amount of months to this.  Can
someone provide an example of how this is done (without using the
deprecated date class set* methods)... I don't quite understand if I
need to use the calendar class, or how to do this since it is abstract.

Thanks,

-Bob

(remove the "nospam" if replying to me directly)
Technical Details
Message-ID: <35B92473.A5C3592E@nospam.ljpc.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2cd4aa1b0d3dbb0b,start
X-Google-Attributes: gidf74b3,public
From: Bob Hayden <bob@nospam.ljpc.com>
Subject: Q: Date Arithmetic
Date: 1998/07/24
Message-ID: <35B92473.A5C3592E@nospam.ljpc.com>
X-Deja-AN: 374674370
Content-Transfer-Encoding: 7bit
Organization: La Jolla Pharmaceutical Company
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language