Not sure I understand. You can do

{{import datetime}}
{{today=request.now}}

{{for i in range(days):}}
  {{today = today+ datetime.timedelta(days=1)}}
  {{=today}}
{{pass}}

On Feb 15, 9:25 am, Jason Brower <[email protected]> wrote:
> I am making a scheduling application and am getting fairly close.
> I have it displaying a charts relative to the size of screen.
> The data configured in the controller and built on the screen with only
> html and css.
> But I have a few issues.
> I need to create a date that I can add one day to another over and over
> to get the day and date and most of all be able to print it to the
> screen.  Do I really need to do that all before I get to the view
> without importing datetime in both the controller and the view?
>
> This view will mark across the screen with tick marks representing each
> day.
> I can get each day, but I can't get the date for each day.
> I need this and then be able to mark when ever there is a saturday and
> sunday. (As the business will be closed.  Any idea how this could be
> best done?
> Enclosed is the view I am using for it...
> I also have encloded my css so you get the idea of how it would look.
>
> Hope you can help out.
>
>  table_test.html
> 1KViewDownload
>
>  base.css
> 4KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to