rt-calculate-date
v1.0.1
Published
Calculate your age and dates
Downloads
3
Maintainers
Readme
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 }