get-midnight-date
v1.0.0
Published
Takes Date object and returns another Date object set to the same date at midnight local time.
Downloads
28
Readme
get-midnight-date
Takes Date object and returns another Date object set to the same date at midnight local time.
Install
$ npm install get-midnight-date --save
Usage
const GetMidnightDate = require('get-mignight-date');
let currentTime = new Date();
let today = GetMidnightDate(currentTime);