Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: fred.l.kleinschmidt@gmail.com Newsgroups: comp.lang.java.programmer Subject: Re: Getting the Week count for the Two date range Date: Fri, 13 Apr 2012 08:14:14 -0700 (PDT) Organization: http://groups.google.com Lines: 10 Message-ID: <13575403.14.1334330054189.JavaMail.geo-discussion-forums@pbrh4> References: <4dda83fc-0bdf-4039-a70c-90b671996e18@gh10g2000pbc.googlegroups.com> NNTP-Posting-Host: 130.76.32.208 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1334330140 25456 127.0.0.1 (13 Apr 2012 15:15:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 13 Apr 2012 15:15:40 +0000 (UTC) In-Reply-To: <4dda83fc-0bdf-4039-a70c-90b671996e18@gh10g2000pbc.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=130.76.32.208; posting-account=_7xgmwoAAADi7iXKBO-oX5zbCfSzsCV0 User-Agent: G2/1.0 Xref: csiph.com comp.lang.java.programmer:13525 On Friday, April 13, 2012 8:04:08 AM UTC-7, George wrote: > Hi, > 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. > Not enough information. Suppose d1 is a Monday, and d2 is Friday 11 days later. What is the "week count" of this range?