Was this page helpful?

Date.IsAfter

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

    Evaluates two dates and returns true if the first date is after the second date.

    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 is after the second date.

    Samples


    Output

    To determine whether today is after 01/01/2000:

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

    true

     

    To compare a date with itself:

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

    false

     

     

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

    Copyright © 2011 MindTouch, Inc. Powered by