Was this page helpful?

Date.StartOfYear

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

    Compute the date corresponding to the beginning of year.

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    datetime
    str The date.

    Result

    The date corresponding to the beginning of year.

    Samples


    Output

    To display the date at the start of this year:

    {{ date.StartOfYear(date.now) }} 

    Tue, 01 Jan 2013 00:00:00 GMT

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

    Copyright © 2011 MindTouch, Inc. Powered by