Was this page helpful?

Date.IsSameDay

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    date.IsSameDay(first : str, second : str) : bool

    Evaluates two dates and returns true if the first date and the second date fall on the same day.

    Usage Restrictions

    1.9.1 or later.

    Parameters

    Name Type Description
    first
    str The first date.
    second
    str
    The second date.

    Result

    True if the first date falls on the same day as the second date.

    Samples


    Output

    To determine whether today falls on the same day as 01/01/2000:

    {{ date.IsSameDay(date.now, "01/01/2000") }} 

    false

     

     

    To compare a date with itself:

    {{ date.IsSameDay("01/01/2000", "01/01/2000") }} 

    true

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

    Copyright © 2011 MindTouch, Inc. Powered by