Return the end of today.
Return the end of today.
⚠️ Please note that this function is not present in the FP submodule as it uses
Date.now()
internally hence impure and can't be safely curried.
// CommonJS var endOfToday = require('date-fns/endOfToday')
// ES 2015 import endOfToday from 'date-fns/endOfToday'
// ESM import { endOfToday } from 'date-fns'
Description |
---|
the end of today |
// If today is 6 October 2014: const result = endOfToday() //=> Mon Oct 6 2014 23:59:59.999
© 2021 Sasha Koss and Lesha Koss
Licensed under the MIT License.
https://date-fns.org/v2.29.2/docs/endOfToday