UNPKG

date-fns

Version:

Modern JavaScript date utility library

22 lines (19 loc) 406 B
var endOfDay = require('../end_of_day/index.js') /** * @category Day Helpers * @summary Return the end of today. * * @description * Return the end of today. * * @returns {Date} the end of today * * @example * // If today is 6 October 2014: * var result = endOfToday() * //=> Mon Oct 6 2014 23:59:59.999 */ function endOfToday () { return endOfDay(new Date()) } module.exports = endOfToday