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