Re: Initial values for date fields possible?
Re: Initial values for date fields possible?
- Subject: Re: Initial values for date fields possible?
- From: Sam Barnum <email@hidden>
- Date: Mon, 15 Dec 2003 08:11:07 -0800
// Getting today's date is an easy one:
NSTimestamp searchRangeMax = new NSTimestamp();
// getting one week ago can be done with
NSTimestamp.timestampByAddingGregorianUnits(),
// if accuracy isn't crucial (w.r.t daylight savings, etc)
NSTimestamp searchRangeMin =
searchRangeMax.timestampByAddingGregorianUnits(0, 0, -7, 0, 0, 0);
On Monday, December 15, 2003, at 06:54 AM, Muggianu, David wrote:
Hello,
I would like to fill date fields ("from" and "to") with initial
values. It
should be possible, that searches are done for entries of the last
week til
today.
Therefore I think, I need an initial value for "from" (f.e. current
date
minus seven days) and for "to" (current date).
How can I do this?
Many thanks in advance for all answers.
Bye, David
_______________________________________________
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.
_______________________________________________
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.