Re: Java date questions
Re: Java date questions
- Subject: Re: Java date questions
- From: Art Isbell <email@hidden>
- Date: Wed, 29 Oct 2003 17:27:00 -1000
On Wednesday, October 29, 2003, at 01:57 PM,
email@hidden wrote:
I have an NSTimestamp. I want to subtract seven days from it. If it's
September 10, I want to end up with September 3. If it's September 1,
I
want to end up with October 25.
I assume you mean August 25 :-)
I probably am gonna want to convert the NSTimestamp to a
GregorianCalendar first. Fair enough. But I can't figure out what
methods to call on the GregorianCalendar to do this date subtraction.
I think you'd do something like
gregorianDate.add(Calendar.DAY_OF_MONTH, -7)
Pretty intuitive, yeah :-)
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.