Did you try what suggested in the ref you post? If it works with datetime it should work with web2py date, since it a datetime object...
But maybe you want something else like Python Calendar... Hard to say with knowing what you want to do... Richard On Thu, Mar 13, 2014 at 1:14 PM, 黄祥 <[email protected]> wrote: > pardon, not sure what do you mean with all Tuesdays. what i want to > achieve is to get week number, something like in python : > isocalendar() > strftime("%U") > > ref: > http://stackoverflow.com/questions/2600775/how-to-get-week-number-in-python > > how to achieve it using web2py method? > > thanks and best regards, > stifan > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

