You can obtain the length of a month from the DateTimeField.

You can calculate the number of weeks in a month, or which week it is
by simple maths from DayOfMonth.

week = ((dom - 1) / 7) + 1;

Stephen


On 19 October 2011 13:09, Michael Szediwy <michael.szed...@syslink.ch> wrote:
> Hi,
>
> what is the best way to compute the number of weeks in a month?
> Or say the 3rd week of October etc.
>
> Thanks in advance for your answer.
>
> Regards
>
> Michael
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2d-oct
> _______________________________________________
> Joda-interest mailing list
> Joda-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/joda-interest
>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to