Was this page helpful?

Date.DayName

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

    Get name of day from a specified date. 

    Usage Restrictions

    1.8.1 or later.

    Parameters

    Name Type Description
    datetime
    str The date to display.

    Result

    The name of day.

    Samples


    Output

    To display the name of today:

    {{ date.DayName(date.now) }} 

    Friday

    To display the day name of a constant date:

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

    Saturday

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

    Copyright © 2011 MindTouch, Inc. Powered by