In Joda-Time you will need to loop backwards, calling minusDays(1) each time around the loop, in order to find the day of week. Stephen
On 20 September 2010 12:51, Jason Roscoe <[email protected]> wrote: > I need to take the current date, and figure out the date for a previous day, > for example Tuesday. So if today is Monday, Sept. 20, I need to return the > previous Tuesday's date of September 14. How can I do this with joda time > in the format yyyy-mm-dd (Ex.: 2010-09-14)? > > > > Thanks! > > ________________________________ > Disclaimer: This e-mail message is intended only for the personal use of > the recipient(s) named above. If you are not an intended recipient, you > may not review, copy or distribute this message. If you have received this > communication in error, please notify us immediately by e-mail and delete > the original message. > > This e-mail expresses views only of the sender, which are not to be > attributed to Rite Aid Corporation and may not be copied or distributed > without this statement. > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest > > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
