year-month-day

3.0.0 • Public • Published

Year-Month-Day

npm version Build Status

Simple function that returns an object with props of year, month and day

Usage

const ymd = require('year-month-day')
const day = new Date('01/01/2015')
const result = ymd(day)
console.log(result)
// {
//  year: 2015,
//  month:  1,
//  day: 1
// }

/year-month-day/

    Package Sidebar

    Install

    npm i year-month-day

    Weekly Downloads

    1,914

    Version

    3.0.0

    License

    Unlicense

    Unpacked Size

    2.47 kB

    Total Files

    6

    Last publish

    Collaborators

    • kev_nz