@brandonalexander/date

This small package is meant to simplify dates for Developers.

Usage no npm install needed!

<script type="module">
  import brandonalexanderDate from 'https://cdn.skypack.dev/@brandonalexander/date';
</script>

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}