Return the start of today.
Return the start 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 startOfToday = require('date-fns/startOfToday')
// ES 2015 import startOfToday from 'date-fns/startOfToday'
// ESM import { startOfToday } from 'date-fns'
Description |
---|
the start of today |
// If today is 6 October 2014: const result = startOfToday() //=> Mon Oct 6 2014 00:00:00
© 2021 Sasha Koss and Lesha Koss
Licensed under the MIT License.
https://date-fns.org/v2.29.2/docs/startOfToday