1.0.1 • Published 2 months ago

rt-calculate-date v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

Getting started

Install

$ npm install date-calculate

Simple usage

import { calculateDate } from "date-calculate";
// or
const { calculateDate } = require("date-calculate");

// usege

const { year, month, day } = calculateDate("2003/07/16");
// or

// Date Today 2022/04/14
const age = calculateDate("2003-07-16T00:00:00.000Z"); // { year: 18, month: 9, day: 7 }