Was this page helpful?

Date.IsSameMonth

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

    Check if first date-time and the second date-time fall on the same month.

    Usage Restrictions

    9.02 or later.

    Parameters

    Name Type Description
    first str first date time string
    second str second date time string

    Result

    True, if the two dates fall in the same month, false otherwise

    Samples

      Output

    To display the timezone of the current datetime object:

    date.IsSameMonth(
      date.Parse("20090401","yyyyMMdd"),
      date.Parse("20090430","yyyyMMdd")
    );
    <br/>;
    date.IsSameMonth(
      date.Parse("20090330","yyyyMMdd"),
      date.Parse("20090401","yyyyMMdd")
    );
    true
    false

     

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

    Copyright © 2011 MindTouch, Inc. Powered by