On Friday, November 22, 2013 3:52:16 AM UTC-8, Niphlod wrote:
>
> http://docs.python.org/2/library/datetime.html<http://www.google.com/url?q=http%3A%2F%2Fdocs.python.org%2F2%2Flibrary%2Fdatetime.html&sa=D&sntz=1&usg=AFQjCNEXPMvuc67QJpilf3nhQJMY2ERscw>
>
> On Friday, November 22, 2013 12:02:11 PM UTC+1, dirman wrote:
>>
>> how do i return now.weekday() as string instead of a integer and also two 
>> days ahead from current weekday?
>>
>
And on that page, you'll look at a datetime object (which has methods for 
"stringifying") and also a timedelta object (which you can add to your 
datetime object).

If you need to insure that you don't get a weekend date, just check the DOW 
of your datetime, and as necessary add more timedelta to it.

/dps 

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to