Its bad to re-invent the wheel, but I think we just keep doing that all the time. The Java API has all these things built-in, but we seem to have our own conventions for everything... The Calender class does all the good work with enough locale specific things...
http://java.sun.com/javase/6/docs/api/java/util/Calendar.html#getFirstDayOfWeek() --- Regards, Saptarshi PURKAYASTHA Director R & D, HISP India Health Information Systems Programme My Tech Blog: http://sunnytalkstech.blogspot.com You Live by CHOICE, Not by CHANCE 2009/5/12 Murodullo Latifov <murodlati...@yahoo.com> > > Hi Caveman, > > > > ----- Original Message ---- > From: Orvalho Joaquim Augusto <orvaq...@gmail.com> > To: Bob Jolliffe <bobjolli...@gmail.com> > Cc: dhis2-devs <dhis2-devs@lists.launchpad.net> > Sent: Tuesday, May 12, 2009 2:08:43 PM > Subject: Re: [Dhis2-devs] weeks calculation > > Well > > Yes this a problem for us. Because we expect to use correctly DHIS > [reporting tools for now] and we need to map exactly the periods from the > actual system to DHIS. > > But meanwhile there is a another problem with a lot of empty data on that > system. Mine foucus has been on that and I forgot for a while these > dateweeks troubles. > > Anyway, can you corect the DHIS2 code please to calculate weekdates? If it > is buggy. > > Regards > Caveman > > Are current periods in Mozambican database generated by DHIS or they are > also imported from elsewhere? > > murod > _______________________________________________ > Mailing list: > https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs> > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : > https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs> > More help : https://help.launchpad.net/ListHelp > > > > > > _______________________________________________ > Mailing list: > https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs> > Post to : dhis2-devs@lists.launchpad.net > Unsubscribe : > https://launchpad.net/~dhis2-devs<https://launchpad.net/%7Edhis2-devs> > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp