Was this page helpful?

Date.DayOfYear

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    date.DayofYear(datetime : str) : str

    Display the day of year from a specified date. 

    Usage Restrictions

    1.8.1 or later.

    Parameters

    Name Type Description
    datetime
    str The date to display.

    Result

    The day of year.

    Samples


    Output

    To display today's day of year:

    {{ date.DayOfYear(date.now) }} 

    146

    To display a constant date's day of year:

    {{ date.DayOfYear("01/01/2000") }} 

    1

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by