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