@brandonalexander/date
v1.0.2
Published
This small package is meant to simplify dates for Developers.
Downloads
6
Readme
Date
This small package is meant to simplify dates for Developers.
Basics
This package has one function and that is LocalDate(). It takes in a date object and returns an object that includes 4 fields. These fields are month, year, date(day of the month), and day(day of the week).
Example
let currentDate = new Date();
let localDateObject = LocalDate(currentDate);
console.log(localDateObject);
>{month: 3, year: 2019, date: 28, day:4}