Skip to content

Kevnz/ymd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
// }

About

simple module that takes a date and returns an object

Resources

Stars

Watchers

Forks

Packages

No packages published