How to use the startOfISOWeek function from date-fns

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

157
158
159
160
161
162
163
164
165
166
exports.setQuarterImpl = dateFns.setQuarter
exports.setSecondsImpl = dateFns.setSeconds
exports.setYearImpl = dateFns.setYear
exports.startOfDayImpl = dateFns.startOfDay
exports.startOfHourImpl = dateFns.startOfHour
exports.startOfISOWeekImpl = dateFns.startOfISOWeek
exports.startOfISOYearImpl = dateFns.startOfISOYear
exports.startOfMinuteImpl = dateFns.startOfMinute
exports.startOfMonthImpl = dateFns.startOfMonth
exports.startOfQuarterImpl = dateFns.startOfQuarter
fork icon0
star icon2
watch icon1

+ 16 other calls in file

169
170
171
172
173
174
175
176
177
178
179
180
    }`;


const sendUnpaidsNotificationEmails = () => {
  console.log(`\nSending unpaids reminders at: ${new Date().toString()}\n`);


  const startOfWeek = startOfISOWeek(new Date());
  const endOfWeek = endOfISOWeek(new Date());
  const startDate = add(startOfWeek, { weeks: -2 });
  const endDate = add(endOfWeek, { weeks: 1 });

fork icon0
star icon0
watch icon1

Other functions in date-fns

Sorted by popularity

function icon

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