Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14309
| Date | 2012-05-05 19:58 -0400 |
|---|---|
| From | Arne Vajhøj <arne@vajhoej.dk> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Getting the Week count for the Two date range |
| References | <4dda83fc-0bdf-4039-a70c-90b671996e18@gh10g2000pbc.googlegroups.com> <n5lqp7tgudfpks98g65cnn6d9euv66tjmu@4ax.com> |
| Message-ID | <4fa5bec5$0$284$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
On 4/29/2012 10:49 AM, Roedy Green wrote: > On Fri, 13 Apr 2012 08:04:08 -0700 (PDT), George<vijuitech@gmail.com> > wrote, quoted or indirectly quoted someone who said : >> I am using a date application. Here I am giving a date as input >> and the total week count is the output.The week count should be >> calculated from Sunday to Saturday as one week count. Is there any >> method in java to get this format of week count. > > There are so many ways of computing such things, what you really want > is a sequential day number. Then you do some subtractions and modular > % and /. To get the day number, see > http://mindprod.com/products1.htm#BIGDATE Or simpler - just use what comes with Java. Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Getting the Week count for the Two date range Roedy Green <see_website@mindprod.com.invalid> - 2012-04-29 07:49 -0700 Re: Getting the Week count for the Two date range Arne Vajhøj <arne@vajhoej.dk> - 2012-05-05 19:58 -0400
csiph-web