Dates

dayjs().startOf('isoWeek').subtract(7, 'day')
dayjs().startOf('week');
dayjs().startOf('isoWeek').subtract(14, 'day');
dayjs().subtract(1, 'month').startOf('month');dayjs(
new Date(today.getFullYear(), today.getMonth() - 1, 1).toString()
);
dayjs().subtract(1, 'month').endOf('month');dayjs(
new Date(today.getFullYear(), today.getMonth(), 0).toString()
);
dayjs().subtract(2, 'month').startOf('month');dayjs(
new Date(today.getFullYear(), today.getMonth() - 2, 1).toString()
);

--

--

--

Consistency achieves everything https://github.com/paigekim29

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

React Native Dark Mode and Theming

RxJS Basics: Operators

Iterators in Javascript ES6

CNN 10 聽力筆記練習(161)

Invite All Users to a Slack Channel

Channel Tools helps you to add all users in bulk to a Slack channel.

Flatpickr: A Practical Introduction

Vue2 to Vue3 — What’s changed?

JavaScript and Transpilers

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Joo Hee Paige Kim

Joo Hee Paige Kim

Consistency achieves everything https://github.com/paigekim29

More from Medium

Did you know you can Run with the Bulls in 2022?

59 Favorable relationship in love quotes for your use.

59 Favorable relationship in love quotes for your use.

Heartbroken

How to be Wrong and Lose Arguments