File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Java in General
Joined: Dec 02, 2000
Jul 18, 2005 06:56:00
How do i get yesterdays date and date 30 days bk...
Joined: Apr 14, 2004
Jul 18, 2005 07:06:00
Have a look at
. In particular, the getInstance() and add(int field, int amount) methods. You should be able to work it out from that.
Joined: Jan 29, 2003
Jul 18, 2005 09:13:00
And, just in case it happens, don't think you're the first person who stared at the API half a day before realizing the amount could be negative.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
It is sorta covered in the
JavaRanch Style Guide
subject: Yesterdays Date
how to get yesterdays date using jsp
Caluculating Yesterdays date based on the current date
how can i get yesterdays date?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015