1.0.0 • Published 8 years ago
get-midnight-date v1.0.0
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);
1.0.0
8 years ago