Was this page helpful?

Date.StartOfDay

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

    Compute the date corresponding to the beginning of day (i.e. midnight). 

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    datetime
    str The date.

    Result

    The date corresponding to the beginning of day.

    Samples


    Output

    To display the date and time at the start of today:

    {{ date.StartOfDay(date.now) }} 

    Fri, 25 May 2012 00:00:00 GMT

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

    Copyright © 2011 MindTouch, Inc. Powered by