@knutkirkhorn/week-number
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    week-number

    📅 Get the ISO 8601 week number of a date

    Installation

    $ npm install @knutkirkhorn/week-number
    

    Usage

    const weekNumber = require('@knutkirkhorn/week-number');
    
    console.log(weekNumber());
    // => 36
    
    console.log(weekNumber(new Date()));
    // => 36
    
    console.log(weekNumber('September 3, 2019 13:33:37'));
    // => 36

    API

    weekNumber([date])

    Returns the ISO 8601 week number of a date. If not date is passed, the current date is used.

    Related

    License

    MIT © Knut Kirkhorn

    Keywords

    Install

    npm i @knutkirkhorn/week-number

    DownloadsWeekly Downloads

    5

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    4.59 kB

    Total Files

    5

    Last publish

    Collaborators

    • knutkirkhorn