Serdar ŞENserdarsen.hashnode.dev·Mar 4, 2023How to calculate the start and end dates of the previous month using momentWhen managing dates, it is good practice to choose only one robust library and stick to it. To look up later, I wanted to keep one specific moment.js usage here. Solution Start date of the previous month const startDate = moment().add(-1, 'months').s...1.2K readsMomentJSAdd a thoughtful commentNo comments yetBe the first to start the conversation.