Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14028 > unrolled thread
| Started by | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| First post | 2012-04-29 07:49 -0700 |
| Last post | 2012-05-05 19:58 -0400 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
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
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-04-29 07:49 -0700 |
| Subject | Re: Getting the Week count for the Two date range |
| Message-ID | <n5lqp7tgudfpks98g65cnn6d9euv66tjmu@4ax.com> |
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 -- Roedy Green Canadian Mind Products http://mindprod.com Programmers love to create simplified replacements for HTML. They forget that the simplest language is the one you already know. They also forget that their simple little markup language will bit by bit become even more convoluted and complicated than HTML because of the unplanned way it grows. .
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-05-05 19:58 -0400 |
| Message-ID | <4fa5bec5$0$284$14726298@news.sunsite.dk> |
| In reply to | #14028 |
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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web