Was this page helpful?

Date.ISOWeek

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

    Takes a standard date string and returns the numeric values of an ISO 8601 week-date as a map.

    Usage Restrictions

    8.08 or later.

    Parameters

    Name Type Description
    datetime str The standard format date to translate.

    Result

    Numeric value of the year, week, or day of a standard date in ISO 8601 week-date form.  All values are returned in map format and can be accessed by name.

    Samples

       Output

    Display the ISO week-date value map of the current date:

    {{ date.ISOWeek(date.now) }} 
    { day : 3, week : 25, year : 2013 }

    Get the ISO 8601 week of a static date:

    {{ date.ISOWeek("12/31/2007").week }} 

    1

     

      

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

    Copyright © 2011 MindTouch, Inc. Powered by