Was this page helpful?

Date.Date

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

    Display the day, month, and year portion of a date. 

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    datetime
    str The date to display.

    Result

    The day, month, and year portion of the specified date.

    Samples

      Output

    To display today's date:

    {{ date.Date(date.now) }} 
    Tue, 18 Jun 2013

    To display a constant date:

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

    Sat, 01 Jan 2000

     

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

    Copyright © 2011 MindTouch, Inc. Powered by