How to use the startOfToday function from date-fns

Find comprehensive JavaScript date-fns.startOfToday code examples handpicked from public code repositorys.

163
164
165
166
167
168
169
170
171
172
exports.startOfISOYearImpl = dateFns.startOfISOYear
exports.startOfMinuteImpl = dateFns.startOfMinute
exports.startOfMonthImpl = dateFns.startOfMonth
exports.startOfQuarterImpl = dateFns.startOfQuarter
exports.startOfSecondImpl = dateFns.startOfSecond
exports.startOfTodayImpl = dateFns.startOfToday
exports.startOfTomorrowImpl = dateFns.startOfTomorrow
exports.startOfWeekImpl = dateFns.startOfWeek
exports.startOfYearImpl = dateFns.startOfYear
exports.startOfYesterdayImpl = dateFns.startOfYesterday
fork icon0
star icon2
watch icon1

+ 16 other calls in file

16
17
18
19
20
21
22
23
24
25
},
current() {
  return parseISO(new Date())
},
startToday() {
  return startOfToday()
},
secondsHumanize(val) {
  return `${val} ${this.$t('second', val)}`
},
fork icon0
star icon0
watch icon0

+ 95 other calls in file

Other functions in date-fns

Sorted by popularity

function icon

date-fns.format is the most popular function in date-fns (3838 examples)